Sql Statement Syntax error?????
Hi all id like to be able to enter a record in my fuelcardtable when i click a button on a form, im using the below code, which is run with the RunCode part of a macro.
The object doesn't contain the automation object 'clsFuelCard.'
You tried to run a Visual Basic procedure to set a property or method for an object, However, the component doesn't make the property or method available for the automation operations.
Check the component's documentation for information on the properties and methods it makes available for automation operations
Option Compare Database
Dim sSQL As String
sSQL = "INSERT INTO TblFuelCard (DateOrdered,OrderReason) values ('Date()','New Starter')"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
Hi all id like to be able to enter a record in my fuelcardtable when i click a button on a form, im using the below code, which is run with the RunCode part of a macro.
The object doesn't contain the automation object 'clsFuelCard.'
You tried to run a Visual Basic procedure to set a property or method for an object, However, the component doesn't make the property or method available for the automation operations.
Check the component's documentation for information on the properties and methods it makes available for automation operations
Option Compare Database
Dim sSQL As String
sSQL = "INSERT INTO TblFuelCard (DateOrdered,OrderReason) values ('Date()','New Starter')"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
Last edited: