How to prevent Pop-Up calendar edited date field

P

paul

Hi,
In my Access 2k application, I have a form contains a
date field. Allow user input date either by type or click
the Pop-Up calendar (it's a form with calendar).
For data intergrity, in the "On current" event, I set
AllowEdit = false if current user is not the original
creator.
If the user tried to input by entering number
(mm/dd/yyyy) it will lock, won't allow user to edit. But
if the user input by the Pop-Up calendar, then it won't
lock.
How can I prevent Pop-Up calendar to input date, when I
want AllowEdit = false?
Thanks for your help.
 
D

Dale Fye

Paul,

I'm assuming the popup calendar is fired by clicking on a command button
next to the date, if that is the case,
you can disable the button at the same time you set AllowEdit = False.

HTH
Dale
 

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