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!

Query using a variable table in a Combo Box

Status
Not open for further replies.

pelida

IS-IT--Management
Mar 29, 2003
4
US
How do I use a variable with the Table Name instead of the actual table name in a query used as Row Source in a combo box?. I need to use the same form with two different tables and I have a variable with the name of the table. Any Ideas?
 
Me!ComboBox.rowsource="Select * From " & YrTblVar & " Where YrFld=" & YrVar


Herman

They say that crime doesn't pay... does that mean my job is a crime?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top