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

RowSource with a twist 1

Status
Not open for further replies.

MFFL

Vendor
Nov 20, 2002
26
US
not urgent, not important really, just curious.

i have no trouble referencing changing rowsource of combobox using:

.rowsource ="Select..."

However I would like to know if its possible to reference a query.

I figured [Forms]![membersModify] worked to access a form so I tried unsuccessfully:

.rowsource = [Queries]![qryName]

Purpose of this is i have an option group and depending on option i change combobox accordingly. I just figured each of the four queries were are defined and saved as reusable queries I might as well reference them through VBA. MMFL-
Mavericks Fan For Life
 
Hi MFFL!

As long as the rowsource type is Tables/Queries then you can put the name of a query in the rowsource and the combo box will work fine.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Jeff,

Thanks again. I thought I tried that first because it made the most sense.

Tried it again and worked great! MMFL-
Mavericks Fan For Life
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top