visible property coding problem

Gilrucht

Registered User.
Local time
Today, 15:33
Joined
Jun 5, 2005
Messages
132
I have a form that I use to both add new records and edit existing ones. I do this thru a combobox and two command buttons. One button opens form in add records mode with combobox visible property set to no. The other button sets the visible property to true. I am getting an error message that "the field combo60 can not be found" Here is my code:
Private Sub Label63_Click()
DoCmd.OpenForm "frm_Client Information"
Me![Combo60].Visible = True

End Sub
The name of the combox is right. Can anyone help?
 
It looks like the combo is on another form so "Me" won't work... Try the following...

Code:
Forms!YourFormName.YourComboBoxName.Visible = False

Regards,
Tim
 
that did it. Thanks.
 

Users who are viewing this thread

Back
Top Bottom