Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open New Form Based on Drop Down Selection

Status
Not open for further replies.

tpearo

Technical User
Apr 24, 2000
124
US
Is it possible to have a list box that lists the forms in your database and allow the user to select a form from the list and when selected launch or open that particular form?
I have about 8 forms that have fields that need to be filled out based upon the testing my technicians do in my lab. I want them to be able to select the test that they will perform based on a drop-down or list box... and when they select the test it open the appropriate form for that test.
Any help would be appreciated.

Tp
 
Set the RowSource property to:
SELECT Name FROM MsysObjects WHERE Type=-32768

In the AfterUpdate event procedure of the listbox:
DoCmd.OpenForm Me![listbox name].Value

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top