I have a table with the following fields.
Record Number (Autonumber and Primary Key)
Work Order Number (Text)
Work Date (short date)
EmpNum (text)
RegTime (number-single)
OT (number-single)
VacHrs (number-single)
SickHrs (number-single)
A record CAN have a duplicate work order number.
I want no duplicates of the combination of:
Work Order Number
Work Date
EmpNum
If a duplicate record containing the three fields shown above is entered, I want to have a msgbox come up with the message:
---Msgbox---
"You have attempted to enter duplicate information involving the following fields:
Work Order Number
Work Date
EmpNum
Please search the WO records for the duplicate information and adjust if necessary.
---End of Msgbox---
I've tried to find the answer in the A2k help, but I'm getting stumped.
Can someone tell me how to do this?
Record Number (Autonumber and Primary Key)
Work Order Number (Text)
Work Date (short date)
EmpNum (text)
RegTime (number-single)
OT (number-single)
VacHrs (number-single)
SickHrs (number-single)
A record CAN have a duplicate work order number.
I want no duplicates of the combination of:
Work Order Number
Work Date
EmpNum
If a duplicate record containing the three fields shown above is entered, I want to have a msgbox come up with the message:
---Msgbox---
"You have attempted to enter duplicate information involving the following fields:
Work Order Number
Work Date
EmpNum
Please search the WO records for the duplicate information and adjust if necessary.
---End of Msgbox---
I've tried to find the answer in the A2k help, but I'm getting stumped.
Can someone tell me how to do this?