How would I make it so that when I enter a number into a field on a form, Access recognizes the range in which the number is (ex. between 1-10, 11-20, 21-30, etc.) and associates the number with a given description/diagnosis. I'm trying to connect GAF numbers with diagnoses from the DSM-IV...
Ok, my fields are ApptID (Autonum), ApptDate, ApptTime, DoctorID, PatientID. I need it so it won't allow duplicates in date, time, and doctorID collectively. I don't know if this helps, but just trying to clarify.
Ok, I see what you're talking about but I don't want each one to be No Duplicates separately. I only want it to reject duplicates of date and time and doctor if all three are duplicates... Can I still do that your way or do I need a module?
I'm making a form in Access which allows someone to set up a doctor's appointment. They can enter a date, time, their first and last name, and the doctor's last name. I need to prevent duplicate appointments (i.e., same time on the same date for the same doctor). How would I do this with VBA...
Yeah, I definitely need to do it in BeforeUpdate.
This is what I have so far:
Private Sub EndDate_BeforeUpdate(Cancel As Integer)
'Warn that the End Date is before the Begin Date
If Me.EndDate < Me.BeginDate Then
MsgBox "The End Date is earlier than the Begin Date."...
I need help on a VBA module.
I need a message box to pop up to warn the user when the End Date is earlier than the Start date when the End and Start dates are entered into a form.
Help please?