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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

addinf combo box to input box

Status
Not open for further replies.

Chippie

Programmer
Oct 5, 2001
11
GB
Is it possible to add a combo box to an input box ?

I want to display a list of current tables in a db, and allow the user to select one for which a query will be applied.

Currently I have a simple input box, from which the user enters the table name.

A combo box would be an excellent addition and, although the module has error checking, it will remove user error on selction.

Any help would be most appreciated.
 
Create your own form with the combo box on it. Use VBA to open the form when you need input and use docmd.runsql to run your query with the combo box as the criteria. If you don't want to see system messages, use docmd to turn of warnings until after the query runs, but don't forget to turn warnings back on. "Databases That Work The Way You Do!"
 
Thankyou, but i was hoping to just run an input box from a macro. Is it possible to do it without a form ?
 
The form becomes the input box. A regular input box will not allow you to put a combo-box on it. You can call the form you've created from a macro just like you did the input box however. "Databases That Work The Way You Do!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top