sales@scantechintl.com
Registered User.
- Local time
- Today, 20:16
- Joined
- Oct 31, 2000
- Messages
- 24
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.