G
Guest
I'm trying to attempt really hard at the moment...I have been asked to create a database that schedules appointments. The database is for a major research study in which participants have time periods between each visit and the study runs over 5 years. They also have 7 days either side of the set date in which they can attend their visit. The users want a program that calculates 3 months in advance the visit dates and creates an appointment record for each visit with the date and time of the appointment. However, they must be able to adjust this record if the participant can't attend the appointment on that day. I'm not really worrying with calculating the visits in advance and creating records yet but I am trying to figure out how to check that the user hasn't scheduled an appointment on a day that the place isn't open - this is the twist...not only do I need to cut out weekends, but also whichever day is entered as a day the place is closed...in other words, the place may be closed every wednesday and weekdays - how can I cut these days out as potential appointment dates.
I have a drop down calendar from which they can pick or type in a date for an appointment but I need to prevent them from selecting a weekend date/public holiday/day when the place is closed. As this program is going to be used by a number of different studies...the day that the place is closed on, can vary. Weekends are always out but it may be in Study A that Wednesday is the closed day or in Study B that Friday is the closed day
How can I set up some process that checks the date selected and makes sure it is a viable date/day and that I will be able to adjust to suit the various studies
Any help will be greatly appreciated...I have programming experience but not in VB and I don't know if there is some way to check in a table of dates, what day each date is
Thanks in advance
I have a drop down calendar from which they can pick or type in a date for an appointment but I need to prevent them from selecting a weekend date/public holiday/day when the place is closed. As this program is going to be used by a number of different studies...the day that the place is closed on, can vary. Weekends are always out but it may be in Study A that Wednesday is the closed day or in Study B that Friday is the closed day
How can I set up some process that checks the date selected and makes sure it is a viable date/day and that I will be able to adjust to suit the various studies
Any help will be greatly appreciated...I have programming experience but not in VB and I don't know if there is some way to check in a table of dates, what day each date is
Thanks in advance
