G
Guest
How do I run an SQL query through a command button?
I'm using this:
Private Sub Command1_Click()
DoCmd.RunSQL "SELECT Table1.F1 FROM Table1"
End Sub
But the following error appears:
A RunSQL action requires an argument consisting of an SQL statement.
What am I doing wrong?
I'm using this:
Private Sub Command1_Click()
DoCmd.RunSQL "SELECT Table1.F1 FROM Table1"
End Sub
But the following error appears:
A RunSQL action requires an argument consisting of an SQL statement.
What am I doing wrong?