Code has to be tied to an event. That event determines when the code runs.
Sharing that with us is almost as important as sharing the code itself.
Where is this code?
The form opens, the user is asked to type in some information. After that
information is entered, the records are retrieved and are displayed in
continuous forms view. One of the fields in this continuous forms view is
the checkbox that I want to be visible or invisible depending on the value in
another field.
I have tried putting the code in OnOpen for the form and also tried
AfterUpdate to run after the user enters their information, but neither place
made this work correctly.
> Code has to be tied to an event. That event determines when the code runs.
> Sharing that with us is almost as important as sharing the code itself.
[quoted text clipped - 16 lines]
> >
> > Any suggestions on how to do this?
Rick B - 30 Jun 2005 16:59 GMT
I think it has to go in the "on curent" event of the subform. If the
subform is in DATASHEET view, I don't think it will work.
(I'm not 100% sure it will work at all since you are not hitting each
record)
Using conditional formatting might be a better way to do this.

Signature
Rick B
> The form opens, the user is asked to type in some information. After that
> information is entered, the records are retrieved and are displayed in
[quoted text clipped - 26 lines]
> > >
> > > Any suggestions on how to do this?
scorpiorc - 30 Jun 2005 17:09 GMT
I will try that. I tried conditional formatting as my very first option, but
Access won't give me the option to use that type of formatting on a checkbox.
> I think it has to go in the "on curent" event of the subform. If the
> subform is in DATASHEET view, I don't think it will work.
[quoted text clipped - 40 lines]
> > > >
> > > > Any suggestions on how to do this?