Forms Menu in a Combobox (1 Viewer)

hassanlabban

Registered User.
Local time
Tomorrow, 00:44
Joined
Oct 25, 2014
Messages
23
Dear Friends
i was wondering if there is a way to make the forms and reports i have in my database show in a combobox where i can choose which form to use same as queries names in a combobox?
if yes, i appreciate letting me the way to do it.

Thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 21:44
Joined
Sep 21, 2011
Messages
14,380
One way wold be to create a table that holds
Object Name
Object Type
Description

Then present them in the Combo box.?

Another would be walk through a system table, but then I believe you would be stuck using the object names which might not be that descriptive?
 

hassanlabban

Registered User.
Local time
Tomorrow, 00:44
Joined
Oct 25, 2014
Messages
23
Dear Gasman
If we went that way, how to link the forms to the entries in the table?

thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 21:44
Joined
Sep 21, 2011
Messages
14,380
You would use
Docmd.OpenForm Me.cboObjectName.Column(0) (if the object name is the first field in the combo rowsource)

where the first field (objectname) would be hidden and you show the descriptive name.
You could then add option for Arguments to the OpenForm in the table as well?
 

Users who are viewing this thread

Top Bottom