M
Marcus
I have some ADO statements in my code (INSERT, UPDATE, DELETE) used in a
passthorugh fashion, like
passthorugh fashion, like
It does not wait? Imho this call should by synchronized. You may try:I would like to force Access to wait for command execution before
stepping into the next line of code... how?
Stefan Hoffmann said:hi Marcus,
It does not wait? Imho this call should by synchronized. You may try:
Option Compare Database
Option Explicit
Private WithEvents m_Connection As ADODB.Connection
Private Sub m_Connection_ExecuteComplete(..)
MsgBox "Completed..."
End Sub
Yes and yes.Stefan should I set the coe above in the form's code? That sub will be
invoked by ADO?
A passthrough query is a query executed by DAO, not by ADO. Your mixingOnly when Execute statment is completed? Yes.
I was afraid passthrough statements were execute in asynchronous mode...
things up. Passthrough queries are executed synchronous.
As long as you don't set any option for the Options parameter of theOuch! I'm using ADO..... do you know what happens when issueing an
cn.execute command if it works in synchronous mode?
Stefan Hoffmann said:hi Marcus,
As long as you don't set any option for the Options parameter of theOuch! I'm using ADO..... do you know what happens when issueing an
cn.execute command if it works in synchronous mode?
Execute method is should be executed synchronously.
--
Function Execute(CommandText As String, [RecordsAffected], [Options As
Long = -1]) As Recordset
Element from ADODB.Connection
--
btw, why do you think that it is running async?
mfG
--> stefan <--