Creating a visible field by record

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following code set up in a checkbox that will make a certain field
visible when required data is needed. When the checkbox is unchecked the
field is invisible. The problem I am having is that when I put a check in the
box it shows the field for all the records, not just the one I am working on.
And then when I exit out of the form and go back into it the field that
should be invisible is visible on all records. Is there a way to make this
specific to only records that have the check in the checkbox field?

If [Multi Shift] = True Then
[Operator2].Visible = True
Else
[Operator2].Visible = False
End If
 
Thank you very much!

schasteen said:
You need to put that code also in the on current event of the form.

Secret Squirrel said:
I have the following code set up in a checkbox that will make a certain field
visible when required data is needed. When the checkbox is unchecked the
field is invisible. The problem I am having is that when I put a check in the
box it shows the field for all the records, not just the one I am working on.
And then when I exit out of the form and go back into it the field that
should be invisible is visible on all records. Is there a way to make this
specific to only records that have the check in the checkbox field?

If [Multi Shift] = True Then
[Operator2].Visible = True
Else
[Operator2].Visible = False
End If
 

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

Back
Top