Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Disable pop up calendar

Disable pop up calendar
sue gray 12/31/2008 4:45:00 PM
I have a date field that I use the pop up calendar for. It works fine,
except that I also open that form in read only. When I open it in read only
I the date field is changeable, how can I fix this. I tried this command but
it shadows out the field. Is there another command I can use to make it look
normal, but not changeable.

Forms!frmcontactnote!contactnoteDateofService.Enabled = False

THanks.
RE: Disable pop up calendar
MikeJohnB 12/31/2008 5:01:01 PM
Try

Forms!frmcontactnote!contactnoteDateofService.Enabled = False
Forms!frmcontactnote!contactnoteDateofService.Locked = True

Note, Not tested but if you Disable a control it greys out, but then locking
the controls gives a normal appearance but locks the control so it cannot be
changed.

I hope this helps you????

Please post back if still a problem??

Kindest Regards

Mike B
--
Advice to Posters.
Check your post for replies or request for more information.
Consider providing some feed back to the response you have recieved.
Kindest Regards Mike B


"sue gray" wrote:

[Quoted Text]
> I have a date field that I use the pop up calendar for. It works fine,
> except that I also open that form in read only. When I open it in read only
> I the date field is changeable, how can I fix this. I tried this command but
> it shadows out the field. Is there another command I can use to make it look
> normal, but not changeable.
>
> Forms!frmcontactnote!contactnoteDateofService.Enabled = False
>
> THanks.
RE: Disable pop up calendar
sue gray 12/31/2008 5:11:01 PM
Worked great!!! Thanks

"MikeJohnB" wrote:

[Quoted Text]
> Try
>
> Forms!frmcontactnote!contactnoteDateofService.Enabled = False
> Forms!frmcontactnote!contactnoteDateofService.Locked = True
>
> Note, Not tested but if you Disable a control it greys out, but then locking
> the controls gives a normal appearance but locks the control so it cannot be
> changed.
>
> I hope this helps you????
>
> Please post back if still a problem??
>
> Kindest Regards
>
> Mike B
> --
> Advice to Posters.
> Check your post for replies or request for more information.
> Consider providing some feed back to the response you have recieved.
> Kindest Regards Mike B
>
>
> "sue gray" wrote:
>
> > I have a date field that I use the pop up calendar for. It works fine,
> > except that I also open that form in read only. When I open it in read only
> > I the date field is changeable, how can I fix this. I tried this command but
> > it shadows out the field. Is there another command I can use to make it look
> > normal, but not changeable.
> >
> > Forms!frmcontactnote!contactnoteDateofService.Enabled = False
> >
> > THanks.
RE: Disable pop up calendar
MikeJohnB 12/31/2008 5:15:01 PM
Glad to help Sue, what you doing playing with Access on New Years Eve Though?

:) Happy New Year
--
Advice to Posters.
Check your post for replies or request for more information.
Consider providing some feed back to the response you have recieved.
Kindest Regards Mike B


"sue gray" wrote:

[Quoted Text]
> Worked great!!! Thanks
>
> "MikeJohnB" wrote:
>
> > Try
> >
> > Forms!frmcontactnote!contactnoteDateofService.Enabled = False
> > Forms!frmcontactnote!contactnoteDateofService.Locked = True
> >
> > Note, Not tested but if you Disable a control it greys out, but then locking
> > the controls gives a normal appearance but locks the control so it cannot be
> > changed.
> >
> > I hope this helps you????
> >
> > Please post back if still a problem??
> >
> > Kindest Regards
> >
> > Mike B
> > --
> > Advice to Posters.
> > Check your post for replies or request for more information.
> > Consider providing some feed back to the response you have recieved.
> > Kindest Regards Mike B
> >
> >
> > "sue gray" wrote:
> >
> > > I have a date field that I use the pop up calendar for. It works fine,
> > > except that I also open that form in read only. When I open it in read only
> > > I the date field is changeable, how can I fix this. I tried this command but
> > > it shadows out the field. Is there another command I can use to make it look
> > > normal, but not changeable.
> > >
> > > Forms!frmcontactnote!contactnoteDateofService.Enabled = False
> > >
> > > THanks.

Home | Search | Terms | Imprint
Newsgroups Reader