Hi All,
I have a simple query that I want to execute in VBA in Access. My form has a button and the following code exists in the click event of the button:
But it gives me a Run Time Error 3131: Syntax error in FROM Clause.
Can somebody help me on this. Very urgent. Many thanks.
I have a simple query that I want to execute in VBA in Access. My form has a button and the following code exists in the click event of the button:
Code:
Dim db As DAO.Database Dim strSQL As String Set db = CurrentDb strSQL = "SELECT * FROM Project info Tbl;" db.Execute strSQL DoCmd.Close acForm, Me.Name Set db = Nothing
But it gives me a Run Time Error 3131: Syntax error in FROM Clause.
Can somebody help me on this. Very urgent. Many thanks.
Comment