Question : Form Visiable property

I use this code to show or hide fields that may or may not be required depending on if the check box is marked or not. Code works fine on single record forms but my problem is I would like to have it on a Muti-record form and the code will hide all the fields on the page and not just the record I am working with. What do I need to add to code to get this to work correctly?
If Me.[CheckMarked] = True Then
Me.Label1.Visible = True
Me.[Feild1].Visible = True
Else
Me.Label1.Visible = False
Me.[Feild1].Visible = False
End If

Answer : Form Visiable property

Sorry, I misread you. I don't think you can hide only some fields on some rows in a subform. What you can do is use conditional formatting to set change color, font color and such. It doesn't prevent insertion, but it sort of hides it.
I could be wrong though, so you should wait for other expert inputs. :)
Random Solutions  
 
programming4us programming4us