in access for an input form I am trying to find a way to have the date inputs only work for a certain day of the week. Let's say Monday. This of course means if they type in a date that isn't a Monday, or click a spot on the calendar that is incorrect, an error should get split up.
If anyone knows of the best way to do this that would be great, but here are the methods I am currently exploring:
1) for the drop down calendar, if there is a way to "gray out" all non-Thursday dates so that they can't click them.
2) in Excel for a graph in you can have the this option: "[$-F800]dddd, mmmm dd, yyyy". so a date that is outputted on the axis would say "Thursday, June 9, 2011". If I could do the same in Access, but then under validation code write something like "In(Thursday) I can then require a thursday string for that date. Then, an error would shoot out if they did not select a thursday date. I have not been able to find out how to have dates automatically set to this format by either typing them, or clicking a random date on the calendar.
Another problem with idea 2) is that I have a program that runs these dates that need to be in the format "6/9/11" rather then "Thursday, June 9, 2011" So I would then need a second data type. say I have input_1 that only accepts those Thursday dates by searching for the string "Thursday" I would also need an input_2 that would always be equivalent to input_1 accept would require the format "6/9/11" (which seems to be default). Then when I run my program, I can just ignore input_1 and use input_2's dates.
Those are the only idea that I've been able to conjure. If anyone knows of a working method it would be very much appreciated!
If anyone knows of the best way to do this that would be great, but here are the methods I am currently exploring:
1) for the drop down calendar, if there is a way to "gray out" all non-Thursday dates so that they can't click them.
2) in Excel for a graph in you can have the this option: "[$-F800]dddd, mmmm dd, yyyy". so a date that is outputted on the axis would say "Thursday, June 9, 2011". If I could do the same in Access, but then under validation code write something like "In(Thursday) I can then require a thursday string for that date. Then, an error would shoot out if they did not select a thursday date. I have not been able to find out how to have dates automatically set to this format by either typing them, or clicking a random date on the calendar.
Another problem with idea 2) is that I have a program that runs these dates that need to be in the format "6/9/11" rather then "Thursday, June 9, 2011" So I would then need a second data type. say I have input_1 that only accepts those Thursday dates by searching for the string "Thursday" I would also need an input_2 that would always be equivalent to input_1 accept would require the format "6/9/11" (which seems to be default). Then when I run my program, I can just ignore input_1 and use input_2's dates.
Those are the only idea that I've been able to conjure. If anyone knows of a working method it would be very much appreciated!
Last edited: