J
JK
Is there a way to prevent a user from selecting a date unless it's a Sunday?
Thx,
JK
Thx,
JK
If the user enters anything but a Sunday date on the main tab, all of the
sub form dates will be incorrect.
The date field on the main tab is called txtWeekDate and it's bound to a
field in the tblDemandLog table called WeekDate.
John W. Vinson said:This seems like a really complicated form to do something that should be
simpler, but...!
Consider having a Combo Box instead of the textbox txtWeekDate. Base it on a
Sundays table, which you can very easily create using Fill... Series in Excel;
just have every Sunday from now for the next twenty years or so. If the users
will only be filling in future dates, you could base the combo on a query such
as
SELECT SundayDate FROM Sundays
WHERE SundayDate >= Date()
ORDER BY SundayDate;
Or you could have it select some reasonable range of dates. That way the user
can PICK a guaranteed-Sunday date, rather than being allowed to type any date
and getting their hand slapped if they mistype.