megatronixs
Registered User.
- Local time
- Today, 19:02
- 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.
Greetings.
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.