Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime error - Object Required, text box invisible 1

Status
Not open for further replies.

0212

Technical User
Apr 2, 2003
115
US
Hi, all! Thanks for helping me out. I am racking my brain as to why I am getting a Run-Time Error '424' - Object Required. See code below. The highlighted text is where the error occurs. I want to make a bound textbox in a form invisible depending on the contents of a textbox in a dialog box. Do you have any ideas? Thanks as always for your fantastic help!


Private Sub Form_Load()
If Forms!Budget_Dialog_3_6_2007.Combo_PE Is Null Then
Me.PELastName.Visible = False
End If
 
Code:
Private Sub Form_Load()
    If IsNull(Forms!Budget_Dialog_3_6_2007.Combo_PE) Then
        Me.PELastName.Visible = False
    End If
End Sub


________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Thank you, ZmrAbdulla!! It works great. I think I was up too late!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top