G
Guest
I have a form that where I do not want to allow data entry after 31/12/07
ie., December 31 2007.
In the AfterUpdate property of the [Date] field I have the code:
If [Date] > #31/12/07# Then DoCmd.CancelEvent
The code immediately corrects my coding to #12/31/2007# which is fine with
me, and has worked with all dates entered entered after 1/01/08 - BUT - now
it is also precluding entry for any date after 29/02/07. All dates up to
28/02/07 are fine - they are not excluded - but why is 29/02/07 causing a
problem.
I suspect the date # 12/31/2007# in the codeing is causing the problem - but
turning it upside down and inside out has not alleviated the problem.
Help
ie., December 31 2007.
In the AfterUpdate property of the [Date] field I have the code:
If [Date] > #31/12/07# Then DoCmd.CancelEvent
The code immediately corrects my coding to #12/31/2007# which is fine with
me, and has worked with all dates entered entered after 1/01/08 - BUT - now
it is also precluding entry for any date after 29/02/07. All dates up to
28/02/07 are fine - they are not excluded - but why is 29/02/07 causing a
problem.
I suspect the date # 12/31/2007# in the codeing is causing the problem - but
turning it upside down and inside out has not alleviated the problem.
Help