sales@scantechintl.com
11-10-2000, 12:05 PM
Hello,
Can anyone tell me what the difference is in the SQL generated in a query and putting that same code in a form?
This is the SQL from the query:
SELECT Employees.ID
FROM Employees;
This is what I put in the form:
Private Sub Text1_Click()
Dim SS
SS = "SELECT Employees.ID FROM Employees;"
DoCmd.RunSQL SS
End Sub
I get a RunTime "2342" error. It says the SQL needs an argument.
I would appreciate any help or ideas on this.
Thank you.
Can anyone tell me what the difference is in the SQL generated in a query and putting that same code in a form?
This is the SQL from the query:
SELECT Employees.ID
FROM Employees;
This is what I put in the form:
Private Sub Text1_Click()
Dim SS
SS = "SELECT Employees.ID FROM Employees;"
DoCmd.RunSQL SS
End Sub
I get a RunTime "2342" error. It says the SQL needs an argument.
I would appreciate any help or ideas on this.
Thank you.