Question : Drop down list from a combo box in a parameter value

Hi I wish to insert a drop down or pick list from a combo box in a form in my parameter box. eg Parameter Box [Please insert Customer] in that parameter I wish to be able to show a list of customers to choose from and insert to run the query.
Thanks

Answer : Drop down list from a combo box in a parameter value

Create an unbounded form.
Insert an unbound combo box and use a customer list query as its row source

In your parameter queryreplace the:

Like [Insert Customer]  or whatever you are using to gererate the parameter box

to:

Like Forms!FormName!ComboName


NB:

Formname is the name of the unbounded form
comboname is the name of the combox on the unbound form


Then create a button on the unbounded form and set its onclick event to:

docmd.openquery "QueryName"


Alternatively you can run the openquery on the onchange or afterupdate event of the combobox
Random Solutions  
 
programming4us programming4us