If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Combine update queries into one query
I have a schedule database that uses 9 update queries
to "rotate" the schedule. The first query changes all records with a ShiftID of 8 to 9. the next query changes 7 to 8, next from 6 to 7, etc until the final query changes 9 to 1. There are 8 shifts. SQL statement from one of the queries is UPDATE tblEmployees SET tblEmployees.ShiftID = 9 WHERE (((tblEmployees.ShiftID)=8)); The queries are run by a macro named mcrRotate. Is there a way to make these changes with one query instead of nine? Can code be used instead? Thanks in advance. RP |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Update another table with a Max record query | Ngan | Running & Setting Up Queries | 2 | June 22nd, 2004 05:01 PM |
Update Query Problem | Casa | General Discussion | 1 | June 14th, 2004 04:17 PM |
Need help! Parameter update query to form | Le Tran | New Users | 7 | June 8th, 2004 06:26 PM |
Update Queries using queries | Vel | Running & Setting Up Queries | 7 | June 4th, 2004 09:21 PM |
Queries painfully slow, some general pointers please? | Graham R Seach | New Users | 0 | June 1st, 2004 05:19 AM |