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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

odd problem with mdi forms....

Status
Not open for further replies.

fenris

Programmer
Joined
May 20, 1999
Messages
824
Location
CA
I have the following snippets of code on a child form of MDIform:


If dbAlreadyOpen(frmMain.mp3DB) Then
MsgBox "A Database is Already open!", vbExclamation, "Already Open..."
Exit Sub
End If

Everytime the above code executes it causes a run time error 426 only one MDI form allowed....and it points to the frmmain.mp3db reference as the culprit. I need this reference in order to access the public mp3db variable.

Any ideas on what is going on?




Troy Williams B.Eng.
fenris@hotmail.com

 
It would help if you could post your source code for dbAlreadyOpen, but aside from that, if you need to pass the MDI reference in order to access the public variable mp3db, then why not just pass that variable and not the entire MDI form reference. - Jeff Marler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top