G
Guest
Another Quick Question, OK This Works
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO Notes (ClientID,Notes) VALUES (" & Me.ID & ",
'Client Booked')"
DoCmd.SetWarnings True
Me.Notes_subform1.Requery
However, I also want to add the Date/Time to the Time Field, so I tried:
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO Notes (ClientID,Notes,Time) VALUES (" & Me.ID & ",
'Client Booked', " & Now() & ")"
DoCmd.SetWarnings True
Me.Notes_subform1.Requery
Now I Get Run-Time error '3134'
Syntax error in Insert INTO Statement.
Any thoughts?
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO Notes (ClientID,Notes) VALUES (" & Me.ID & ",
'Client Booked')"
DoCmd.SetWarnings True
Me.Notes_subform1.Requery
However, I also want to add the Date/Time to the Time Field, so I tried:
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO Notes (ClientID,Notes,Time) VALUES (" & Me.ID & ",
'Client Booked', " & Now() & ")"
DoCmd.SetWarnings True
Me.Notes_subform1.Requery
Now I Get Run-Time error '3134'
Syntax error in Insert INTO Statement.
Any thoughts?