Hi there
The below code executes some queries.
As newbie I was wondering weather you are better of using connection execute
or command execute to execute queries?
I am asking as Gcnndoh.Execute "AppendDataEntr ySummaryLevel2" causes a
Run-time error '-2147217900 (80040e14).
If I execute the query from the query editor it's working ok!! No
messages!!!
"*****code snipple********
Set Gcnndoh = CurrentProject. Connection
'append missing data entered "=Queryname s"
Gcnndoh.Execute "CreateTempdata check"
Gcnndoh.Execute "AppendDataEntr ySummaryLevel1"
Gcnndoh.Execute "AppendDataEntr ySummaryLevel2"
DoEvents
Gcnndoh.Close
set Gcnndoh = nothing
any suggestions are much appreciated.
Norman
The below code executes some queries.
As newbie I was wondering weather you are better of using connection execute
or command execute to execute queries?
I am asking as Gcnndoh.Execute "AppendDataEntr ySummaryLevel2" causes a
Run-time error '-2147217900 (80040e14).
If I execute the query from the query editor it's working ok!! No
messages!!!
"*****code snipple********
Set Gcnndoh = CurrentProject. Connection
'append missing data entered "=Queryname s"
Gcnndoh.Execute "CreateTempdata check"
Gcnndoh.Execute "AppendDataEntr ySummaryLevel1"
Gcnndoh.Execute "AppendDataEntr ySummaryLevel2"
DoEvents
Gcnndoh.Close
set Gcnndoh = nothing
any suggestions are much appreciated.
Norman
Comment