J
Jeanne
Receive RunTime error ‘2342’
A RunSQL action requires an argument consisting on an SQL statement.
I’m able to run other SQL successfully, Insert, Delete, … cannot run a
Select statement.
I have this same below code running in other applications – no problem.
In this same application I have an SQL Select statement running using this
same Recordset definition -- no problem
My “References†in Tools include “Microsoft ActiveX DataObjects 2.1 Library.
Dim cnn2 As ADODB.Connection
Set cnn2 = CurrentProject.Connection
Dim RcdSet2 As New ADODB.Recordset
RcdSet2.ActiveConnection = cnn2
Dim sSQL As String
sSQL = "SELECT COA_Checking.* FROM COA_Checking"
DoCmd.RunSQL sSQL
A RunSQL action requires an argument consisting on an SQL statement.
I’m able to run other SQL successfully, Insert, Delete, … cannot run a
Select statement.
I have this same below code running in other applications – no problem.
In this same application I have an SQL Select statement running using this
same Recordset definition -- no problem
My “References†in Tools include “Microsoft ActiveX DataObjects 2.1 Library.
Dim cnn2 As ADODB.Connection
Set cnn2 = CurrentProject.Connection
Dim RcdSet2 As New ADODB.Recordset
RcdSet2.ActiveConnection = cnn2
Dim sSQL As String
sSQL = "SELECT COA_Checking.* FROM COA_Checking"
DoCmd.RunSQL sSQL