I have a command botton which I would like to run a SQL.
Private Sub Command3_Click()
Dim SQL As String
SQL = "select * from inv1 where Bin = '13'"
CurrentDb.Execute (SQL)
End Sub
I keep getting an error on CurrentDB.Execute (SQL) highlite in yellow.
What's wrong with this code? Is something missing?
Thanks
Private Sub Command3_Click()
Dim SQL As String
SQL = "select * from inv1 where Bin = '13'"
CurrentDb.Execute (SQL)
End Sub
I keep getting an error on CurrentDB.Execute (SQL) highlite in yellow.
What's wrong with this code? Is something missing?
Thanks