Restruicting entries based on Date and Time

J

JohnB

Hi. Can anyone help with this one??

Im building a form which will allow users to create
records containing StartDate, StartTime, EndDate and
EndTime details as well as other information. I want users
to be restricted to creating records with StartDates and
StartTimes that are within the current week, defined as
being from 12.00 last Wednesday, to 12.00 next Wednesday.

If the user enters the StartDate first, then the
StartTime, is there some code I could use in the After
Update event of the StartTime field to check what the user
has entered in these two fields and to bar them and bring
up a suitable message if they are outside the current week?

Are there any examples of this sort of thing anywhere?

Thanks in advance. JohnB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top