Using a combobox to display results of query

Dowsey1977

Board Regular
Joined
Apr 6, 2004
Messages
185
I have a query which I am using as a subform on a form. However, I think a combobox would do a better job. Is there anyway to get a combobox to just disply these results?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Ok, so far so good! Was using control source and not row source!

I have managed to get it to work, but when you click on the drop down box you have to scrol across. As there are more than 1 'cells' for each record, but not a consistent number, I want any information to be displayed downwards, not across.
 
Upvote 0
A combobox displays one record per row. if you have multiple columns you can alter their width from the property sheet to display them better.

HTH

Peter
 
Upvote 0
Ok, change of plan! Using a form now, which is doing what I want. Is there anyway to only have a textbox show when there's something in it? (e.g. some fancy VB SCript or something!)
 
Upvote 0

Forum statistics

Threads
1,221,771
Messages
6,161,847
Members
451,723
Latest member
Rachetsely

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top