My original post on this subject seems to have vanished into thin air, so
here is take 2.
I learnt many years ago not to leat users enter dates manually (ie:
keyboard) for a number of reasons, amongst other:
-format problems (dd/mm/yy or mm/dd/yy or some other format)
-invalid date entries (2010-Feb-29, 2010-Jun-31,...)
-typos
This is why, and I cannot urge this enough, you need to implement a pop-up
calendar date picker. They are faster (only require a click or two of the
mouse) and will validate and ensure proper formating of the entries.
For more on the subject check out
http://www.devhut.net/index.php?lang...00004#datepick
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples:
http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
"Associates" wrote:
> Hi,
>
> I was wondering if anyone might be able to help me here.
>
> What i am trying to do here is to be able to tell if the entered date by a
> user is valid in a sense that it still falls within the range of a month.
>
> For example, users might by accident enter in 29/02/2010 when there was no
> such date in the calendar. I want to be able to write a code to check the
> date before proceeding any further. The other problem I am having is since
> the date field is of type date/time, everytime trying to put in 29/02/2010 in
> the textbox, Access will change it into 2029/02/10 automatically. I can not
> do anything if it keeps doing that.
>
> Wonder if anyone might be able to share some thoughts here.
>
> Thank you in advance