TravelerOn
Registered User.
- Local time
- Today, 18:34
- Joined
- Dec 17, 2001
- Messages
- 21
Hi all,
I posted a similar question in the VBA forum, but I've since simplified and refined to adjust this process.
I have a table that has a certain number of "trials" or records, with a field called "Priority" that designates (by sorting) how they should appear in a report. Hence, Trial #1341 has priority value #1, etc etc etc....I've created a select query that shows just the trial number and priority, and then an update query with the update to: [Priority]+1...so if a user makes a record (the table allows "temporary" duplicates, so that 1341 can be #1 and so can 1342) and needs to move all the other records to the next level of priority, they can do so.....HOWEVER, how can I exclude certain records from the update query? That is, the [Priority]+1 query will change all priorities to the next level, so that both trials marked #1 will change to #2, a #1 priority will cease to exist...and so on....I can make the adjustments behind the scenes, and so can the user on the form (go in and manually reenter 1341 back to priority #1)...but is there a better way? That is, if a user creates a new trial, assigns it #1, can I make a query automated to understand the [Priority]+1 applies to all records except that one?
I posted a similar question in the VBA forum, but I've since simplified and refined to adjust this process.
I have a table that has a certain number of "trials" or records, with a field called "Priority" that designates (by sorting) how they should appear in a report. Hence, Trial #1341 has priority value #1, etc etc etc....I've created a select query that shows just the trial number and priority, and then an update query with the update to: [Priority]+1...so if a user makes a record (the table allows "temporary" duplicates, so that 1341 can be #1 and so can 1342) and needs to move all the other records to the next level of priority, they can do so.....HOWEVER, how can I exclude certain records from the update query? That is, the [Priority]+1 query will change all priorities to the next level, so that both trials marked #1 will change to #2, a #1 priority will cease to exist...and so on....I can make the adjustments behind the scenes, and so can the user on the form (go in and manually reenter 1341 back to priority #1)...but is there a better way? That is, if a user creates a new trial, assigns it #1, can I make a query automated to understand the [Priority]+1 applies to all records except that one?