Shweta
Well-known Member
- Joined
- Jun 5, 2011
- Messages
- 514
Hi All,
I am trying to run the below code in access 2013 vba editor however it is showing as undate statement syntax error. kindly help.
Thanks in advance!
I am trying to run the below code in access 2013 vba editor however it is showing as undate statement syntax error. kindly help.
Code:
Sub abc()
Dim sSQL As String
Dim DB As Database
Set DB = CurrentDb
sSQL = "UPDATE TABLE Employee SET [Notes] = 'Under Paid' WHERE [ANNUAL CTC] < 400000;"
'DB.Execute sSQL
DoCmd.RunSQL sSQL
End Sub
Thanks in advance!