CurrentDb.Execute for updating record (1 Viewer)

megatronixs

Registered User.
Local time
Today, 13:45
Joined
Aug 17, 2012
Messages
719
Hi all,

I have the below code where I want to use it to update instead of insert.
I wanted to update the record with a cancelation date where the event_id and participant_peoplesoft_id is equal in the table. How to change it so it will update? I tried to use the UPDATE instead INSERT INTO, but no luck.
Code:
CurrentDb.Execute "INSERT INTO tbl_enrolment (event_id, participant_peoplesoft_id, training_canceled_date) Values( '" & EventID & "','" & PeopleSoft & "','" & InboxItem.ReceivedTime & "')"

Greetings.
 

megatronixs

Registered User.
Local time
Today, 13:45
Joined
Aug 17, 2012
Messages
719
Hi,

I did, but could not open that one becouse of my internet explorere showing me a blank page with nothing.
Will try firefox to see if I can get it visible.

Greetings.
 

Users who are viewing this thread

Top Bottom