F
Frandy
I am using the following code to run a Select query on the Click of a Command
Button
Private Sub CreateMovementRecords_Click()
DoCmd.RunSQL "SELECT [Aus Life Lookup].[Client Code] FROM [Aus Life Lookup];"
End Sub
But it does not recognise the SQL statement and returns error message when
running of Error 2342 and 'A RunSQL action requires an argument consisting
of a SQL statement'
This SQL is just copied from the SQL view of the query that works fine when
executed outside the code.
Any ideas ?
Button
Private Sub CreateMovementRecords_Click()
DoCmd.RunSQL "SELECT [Aus Life Lookup].[Client Code] FROM [Aus Life Lookup];"
End Sub
But it does not recognise the SQL statement and returns error message when
running of Error 2342 and 'A RunSQL action requires an argument consisting
of a SQL statement'
This SQL is just copied from the SQL view of the query that works fine when
executed outside the code.
Any ideas ?