Solved

Loading MainMenu form on Start Up

Posted on 2004-04-25
2
166 Views
Last Modified: 2010-05-02
Hi,

Im running 2 forms in my app
frmCustomers
frmMainMenu
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
0
Comment
Question by:igotnosmoke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
IT-Schubertz earned 50 total points
ID: 10915934
Hi,

you have two possibilities:
First:
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.

Greetings

Andy
0
 
LVL 1

Expert Comment

by:i_rajeevsingh
ID: 10916567
Code will be like in

Sub Main()

load frmMainMenu
frmMainMenu.show

End sub

or if you want to load when loading application then

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

733 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