Here's how you would do it.
Create a function, which we'll call "HideTextBoxes"
Code:
Public Function HdeTextBoxes ()
Forms!YourForm.txtbox1.Visible = False
Forms!YourForm.txtbox2.Visible = False
End Function
Now on your form whereever you're going to have this triggered, you would just put this
HdeTextBoxes
If you don't mind my asking, why do you need to do it this way?
[/CODE]
Originally Posted by
ColPat
Hi,
I want to call a function in a module to hide textboxes on a form.
the form is called frName and one of the textboxes is txSStartDate.
Have tried the following lines in the function
Me.txSStartDate.Visible = False
Me.frName.txSStartDate.Visible = False
[Forms]![frName]![txSStartDate.Visible= False]
but none work
Anyone able to help?