Loading MainMenu form on Start Up

Posted on 2004-04-25
Last Modified: 2010-05-02

Im running 2 forms in my app
and 1 module used for a DB connection... ive set my project start up as SUB MAIN (which is in the module)... and in result frmCustomer loads when i start up the application

but i want the frmMainMenu to load first... what do i do?

an additional 100 (split) awarded to ryancys and acperkins
for replying to this question
Question by:igotnosmoke

Accepted Solution

IT-Schubertz earned 50 total points
ID: 10915934

you have two possibilities:
in your sub main you do a
load frmMainMenu
or frmMainMenu.Show
this would be the choice if you do need to run your sub main at startup.

the second option would be under Project --> Preferences --> you can select your startup object (sub main or any form).
But if you choose this, remember that your sub_main won't be executed unless you directly call it.



Expert Comment

ID: 10916567
Code will be like in

Sub Main()

load frmMainMenu

End sub

or if you want to load when loading application then

Project --> Preferences--> Startup Form
Select from the drop down box

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now