I am trying to update my address table using four separate queries.
I call each query from a docmd......thus
The problem is that although the first query does EXACTLY , It takes about 4 minutes to run. My query is .....
My concern is that the subsequent queries run before the first one is complete.
Is there any way (using vb) to check if/when query_001 is complete before issuing the subsequent statements?
I call each query from a docmd......thus
Code:
DoCmd.OpenQuery "QRY_UPDATE_POSSIBLE_CMTY_001"
DoCmd.OpenQuery "QRY_UPDATE_POSSIBLE_CMTY_002"
DoCmd.OpenQuery "QRY_UPDATE_POSSIBLE_CMTY_003"
DoCmd.OpenQuery "QRY_UPDATE_POSSIBLE_CMTY_004"
The problem is that although the first query does EXACTLY , It takes about 4 minutes to run. My query is .....
Code:
UPDATE Address, dbo_ADM_Postcode SET Address.ADDR6 = Trim([dbo_ADM_Postcode].[CMTY_Name])
WHERE (((Address.ADDR6)="") AND ((Address.ADDR2) Like ("*" & Trim([dbo_ADM_Postcode].[CMTY_Name]) & "*")) AND ((Address.ADRCITY) Not Like ("*" & Trim([dbo_ADM_Postcode].[CMTY_Name]) & "*")));
My concern is that the subsequent queries run before the first one is complete.
Is there any way (using vb) to check if/when query_001 is complete before issuing the subsequent statements?