RossWindows
Que?
- Local time
- Today, 10:38
- Joined
- Feb 25, 2008
- Messages
- 410
I've been out of the loop for a while so I can't remember the best course of action here.
I have a table with a list of Orders that need to be worked by a team in our company. I also have a form that Administrators use to select a batch of those orders to work. The options they select are: Number of orders they want to work and what time zone they want the orders to be in. I have the following query which is compiled in the form's code, based on the Administrator's selected options...
So, my question now is; how do I go about traversing through each OrderNumber in the query results and UPDATE the corresponding intCallCenterID in tblAvailableOrders with, i.e., a number 1?
I would like to have this all done within VBA if possible.
I have a table with a list of Orders that need to be worked by a team in our company. I also have a form that Administrators use to select a batch of those orders to work. The options they select are: Number of orders they want to work and what time zone they want the orders to be in. I have the following query which is compiled in the form's code, based on the Administrator's selected options...
Code:
strSQL = "SELECT TOP " & intRequest & " tblAvailableOrders.OrderNumber,
tblAvailableOrders.TimeZoneDesc, tblAvailableOrders.intCallCenterID
FROM tblAvailableOrders"
If cboTimeZone <> "ALL" Then
strSQL = strSQL & " WHERE (((tblAvailableOrders.TimeZoneDesc)='" & cboTimeZone & "'));"
Else
strSQL = strSQL & ";"
End If
So, my question now is; how do I go about traversing through each OrderNumber in the query results and UPDATE the corresponding intCallCenterID in tblAvailableOrders with, i.e., a number 1?
I would like to have this all done within VBA if possible.