|
-
Nov 13th, 2001, 12:20 AM
#1
Thread Starter
New Member
cannot get form1 to load form2
pertaining to my current problem that I'm having with getting my first form to open my second form...
When I put the instruction that I was told to do ..
I get an OBJECT REQUIRED error
I named my first form Math2 and the second form Menu1
I was told to load anyone of these instructions
frm1created.show
form2.show vbModel
Load form2
form2.show
I subsituded the word form with math2 and menu1
-
Nov 13th, 2001, 01:07 AM
#2
Lively Member
named my first form Math2 and the second form Menu1
Put a button on your first form(Math2)
In the button put:::
----------------------------------------------------------------------------------
Menu1.show
-----------------------------------------------------------------------------------
It WILL work
-
Nov 13th, 2001, 01:28 AM
#3
Hyperactive Member
error you are talking about occurs when u try to refer some non existing object.
This means either you have misspelled or you are trying to refer to object which is not accessible because it is declared on some other form.
-
Nov 13th, 2001, 01:47 AM
#4
PowerPoster
If your second form is named Menu1 then you say "Menu1.show" in a button or something.
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Nov 13th, 2001, 01:49 AM
#5
Make sure thatyou have the words "Option Explicit" at the top of the form - this will force VB to check that every variable has been explicitly declared (so it finds the spelling mistakes really quickly)
- gaffa
-
Nov 13th, 2001, 07:44 PM
#6
Thread Starter
New Member
When I enter menu1 show in the name for the start command for menu1 I get an error Not a leagal object name
-
Nov 13th, 2001, 07:47 PM
#7
Fanatic Member
change your form named menu1 to something different say frmMenu1
you may be having a problem with the form being called menu
I dont think it shuold becuase i dont recall any reserved words with that name but give it a shot anyway
-
Nov 13th, 2001, 07:51 PM
#8
Stuck in the 80s
rudvs2 already said it, but I always name all of my forms with the prefix frm to avoid problems like that. it's a good trend to follow.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|