HarrySpencer
Registered User.
- Local time
- Today, 00:20
- Joined
- Apr 10, 2007
- Messages
- 25
Hello, I've not been able to locate any information on this and I'm guessing I'll need to do this with some VBA code.
I have a table called person with associated fields, name, dob, address, etc and a table called timetable that holds day, start time, end time.
I've setup the timetable as a sub-form of the person form, what I would like to do is limit the number of records that the timetable table/form can hold a maximum of 7 records (each day of the week) and validate so only one of each day can be used.
I was think I could try and match the newest added timetable record against others for that person and see if any days match but can't think of the code. From waht I've read so far would recordset or clone functions work?
many thanks, Harry
p.s. I've just switch to using Access 2007
I have a table called person with associated fields, name, dob, address, etc and a table called timetable that holds day, start time, end time.
I've setup the timetable as a sub-form of the person form, what I would like to do is limit the number of records that the timetable table/form can hold a maximum of 7 records (each day of the week) and validate so only one of each day can be used.
I was think I could try and match the newest added timetable record against others for that person and see if any days match but can't think of the code. From waht I've read so far would recordset or clone functions work?
many thanks, Harry
p.s. I've just switch to using Access 2007