Context:
I have two tables a Customer Master and Attendance Master
The Attendance Master is a subform within the main form.
The user will select the customer to be processed and all the dates that the customer has attended will be displayed in the subform. The subform is now added with the new date of attendance
Each customer can only attend once per date, no duplcate dates.
The customerID is the key field in both tables, I allow dups for the customerID in the Attendance Master.
I tried to index the attended filed in the Attendance Master, with no dups, but that only allows one date for the entire table.
How do I allow for only 1 date to be entered for the same customerID?
I need to somehow look at all the records in the table that are already posted for that customerID, and if the date is same as I am about to add, do not allow it. I don't know basic or sql that well to do this.
This is a common programming issue, but in Access, I don't know how to accomplish this check
Many thanks,
Jim
I have two tables a Customer Master and Attendance Master
The Attendance Master is a subform within the main form.
The user will select the customer to be processed and all the dates that the customer has attended will be displayed in the subform. The subform is now added with the new date of attendance
Each customer can only attend once per date, no duplcate dates.
The customerID is the key field in both tables, I allow dups for the customerID in the Attendance Master.
I tried to index the attended filed in the Attendance Master, with no dups, but that only allows one date for the entire table.
How do I allow for only 1 date to be entered for the same customerID?
I need to somehow look at all the records in the table that are already posted for that customerID, and if the date is same as I am about to add, do not allow it. I don't know basic or sql that well to do this.
This is a common programming issue, but in Access, I don't know how to accomplish this check
Many thanks,
Jim