cravincreeks
Technical User
....that the action is completed before the next line of code executes?
I HAVE been reading the ADO documentation about this, but am having trouble following the example because I don't understand C++ very well.....hence, I'm asking here.
As a part of a long series of VBA/ADO/Access code, I'm updating values in an Access table with values in a linked Oracle table (using Microsoft ODBC for Oracle). The problem is, the update doesn't seem to finish before subsequent code executes. So if I pass a long integer as the records affected parameter in the execute method and then print the value of the long integer, will this GUARANTEE that the update completes before the next line of code is called, such as:
Opitionally, feel free to provide a VB/VBA example of how to trap and use the ExecuteComplete event to guarantee the update is finished before the next line executes.
Thanks!
AZ
I HAVE been reading the ADO documentation about this, but am having trouble following the example because I don't understand C++ very well.....hence, I'm asking here.
As a part of a long series of VBA/ADO/Access code, I'm updating values in an Access table with values in a linked Oracle table (using Microsoft ODBC for Oracle). The problem is, the update doesn't seem to finish before subsequent code executes. So if I pass a long integer as the records affected parameter in the execute method and then print the value of the long integer, will this GUARANTEE that the update completes before the next line of code is called, such as:
Code:
'update tblTemp
strSQL = "UPDATE TempForParcMatch INNER JOIN PARCEL ON TempForParcMatch.ParcelID = PARCEL.ID " & _
"SET TempForParcMatch.X = [PARCEL].[X], TempForParcMatch.Y = [PARCEL].[Y];"
'condb is my open connection
condb.Execute strSQL, i
Debug.Print i & " record(s) were affected by the Oracle Query"
Opitionally, feel free to provide a VB/VBA example of how to trap and use the ExecuteComplete event to guarantee the update is finished before the next line executes.
Thanks!
AZ