Watermelon
Programmer
Hi,
I don't have a lot of experience with queries and I think I need to use them now. I have a form where a user can enter a catalog and starting catalogpage. After the user
enters this information I want to increase the page number field by 2 for every page >= the starting catalogpage in the catalog the user selected. This I imagine I can do with an update sql statement right under a "Run" or "GO" button.
However, I'm confused about something else I need to do. In addition to updating this table, I also need to update another table (a BillofMaterials table). In this table I need to also increment the catalogpage numbers for the catalog the user selected. The complication is that I need to update them in reverse order. Is there anyway to update
records from bottom to top. In other words, I need to start incrementing the page numbers starting with the highest number and finishing with the lowest.
Would I need to run a separate query where I would first get the records, sort them in descending order and then run another query where I update the records?
Any ideas?
Thanks,
watermelon
I don't have a lot of experience with queries and I think I need to use them now. I have a form where a user can enter a catalog and starting catalogpage. After the user
enters this information I want to increase the page number field by 2 for every page >= the starting catalogpage in the catalog the user selected. This I imagine I can do with an update sql statement right under a "Run" or "GO" button.
However, I'm confused about something else I need to do. In addition to updating this table, I also need to update another table (a BillofMaterials table). In this table I need to also increment the catalogpage numbers for the catalog the user selected. The complication is that I need to update them in reverse order. Is there anyway to update
records from bottom to top. In other words, I need to start incrementing the page numbers starting with the highest number and finishing with the lowest.
Would I need to run a separate query where I would first get the records, sort them in descending order and then run another query where I update the records?
Any ideas?
Thanks,
watermelon