Load all forms, Second phase
Posted on 1998-09-16
Well, i dont remamber how it was but to load all forms or load a form with it's name here is a simple progi (make sure you have tow forms, form1 unt form2):
Private Sub Command1_Click()
Dim I As Form
Set I = Forms.Add("form2")
Just put a bottom on the first form for this code to run, and press F5, the progi runs and when you press the button on form1 the second form is opend, this is nice and since I have the DB file will all forms name i can easly load any form if i know it's name (I have about 70 forms to load when i user request to),Okay now make an EXE of it and press the button - BEEEEEEEEEEEP - Automation error!!!!
Jesus, It works on VB mode but on EXE it dos'nt!!! Hey you that answered my Question before, give me back my points or help me out here!!! You gave me half answer!!!