• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

Run-time Error in VB (1 Viewer)

firedingo

firedingo
Joined
Jul 26, 2007
Messages
14
Location
Orange, NSW
Gender
Female
HSC
2009
I'm doing this project that our teacher has us working on in SDD but when I run the program I get a run-time error '424'. It's a text box with a menu attached and a search box in a separate form.

I hit debug and it highlighted some code.
The whole section of code goes as this:

Private Sub mnusearchfind_Click()
frmFind.Show
End Sub


The code is suppose to link the two forms.
Any suggestions as to how I can fix this error.
 

me121

Premium Member
Joined
Apr 19, 2006
Messages
1,407
Location
-33.917188, 151.232890
Gender
Male
HSC
2007
the only thing i can think of is are you sure that those names match the actual names of the objects..?
 

firedingo

firedingo
Joined
Jul 26, 2007
Messages
14
Location
Orange, NSW
Gender
Female
HSC
2009
Our techer gave us booklets to work from with code already there so I'm sure the names should match.
 

chook 05

Sum Fulla
Joined
Feb 7, 2007
Messages
40
Gender
Male
HSC
2008
hey,

Possibly the form has been unloaded by a previous subroutine? try calling

Code:
Private Sub mnusearchfind_Click()

[I]frmFind.Load[/I]
frmFind.Show

End Sub
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top