gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have code that adds a new record to a table.
I need to run an IIf statement and only do this if a record doesn't already exist with the same field value "PID_Number"
HELP PLEASE!!!!!
I need to run an IIf statement and only do this if a record doesn't already exist with the same field value "PID_Number"
Code:
Set rec = CurrentDb().OpenRecordset("tblRFPManager")
rec.AddNew
rec("PID_Number") = Me.PID_Number
rec("Last_UserChangeDate") = Now
rec("Last_UserId") = GetUserLogin()
rec("PID_Creator") = GetUserID()
rec("PID_Owner") = rec("PID_Creator")
rec.Update
rec.Close
HELP PLEASE!!!!!
Last edited: