Greetings.
I am having a problem with record validation in access 2000.
I have a table of records for appointments. I INSERT INTO the table records with available dates and times for the next three months when the form is opened. Those records only have the appointment date and time, and none of the other fields in the table are required at that time.
Now, when a user reserves an existing appointment time by clicking the boolean "Reserve Appt" that record is locked for editing.
At this point, I need to change the validationrule for some of the controls bound to that record.
I tried to code Me.txtApptName.validationrule = " > ''" on the tglReserveAppt_Click event. How do I trap for violations of that validationrule?
Do you have suggestions on other ways to catch this? Mostly I just need to make some fields "required" when the record has been set as reserved.
I am having a problem with record validation in access 2000.
I have a table of records for appointments. I INSERT INTO the table records with available dates and times for the next three months when the form is opened. Those records only have the appointment date and time, and none of the other fields in the table are required at that time.
Now, when a user reserves an existing appointment time by clicking the boolean "Reserve Appt" that record is locked for editing.
At this point, I need to change the validationrule for some of the controls bound to that record.
I tried to code Me.txtApptName.validationrule = " > ''" on the tglReserveAppt_Click event. How do I trap for violations of that validationrule?
Do you have suggestions on other ways to catch this? Mostly I just need to make some fields "required" when the record has been set as reserved.