sambo
Registered User.
- Local time
- Yesterday, 17:49
- Joined
- Aug 29, 2002
- Messages
- 289
I have a form that either allows the user to add a new serial number (and subsequent data) or update a serial number (and data) that already exist.
After the button click I want to do this:
If RecordExists in tblUnits Then 'update old data
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Else 'record doesn't exist, so add it
DoCmd.GoToRecord , , acNewRec
End If
Is this possible?
How do I check to see if that particular serial number is already in the table, tblUnits?
Help..
After the button click I want to do this:
If RecordExists in tblUnits Then 'update old data
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Else 'record doesn't exist, so add it
DoCmd.GoToRecord , , acNewRec
End If
Is this possible?
How do I check to see if that particular serial number is already in the table, tblUnits?
Help..