Update Statement VBA Access (1 Viewer)

hazeleyre23

Registered User.
Local time
Today, 03:33
Joined
Apr 6, 2016
Messages
18
Do I just add the dbSeeChanges to the end of the statement.

Do I need to do anything before as currently is this is my full code, from reading other forums I think I might be missing parts?!

Code:
Private Sub cmdUpdateToDate_Click()
   
        CurrentDb.Execute "UPDATE dbo_Agent_Data SET ToDate = #" & Me!txtUpdateToDate & "# WHERE [id_NEW] = '" & Me!txtUpdateID & "'"
           
End Sub

Thank you
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:33
Joined
May 7, 2009
Messages
19,249
your other post is correct, since new_id is numeric you dont need to enclosed it in quote mark.
 

hazeleyre23

Registered User.
Local time
Today, 03:33
Joined
Apr 6, 2016
Messages
18
THANK YOU SO MUCH!

This has solved it.....thank you again :):):)
 

Users who are viewing this thread

Top Bottom