Solved

Loading MainMenu form on Start Up

Posted on 2004-04-25
2
167 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

696 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