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

Using a query variable in code

Status
Not open for further replies.

DJT1

IS-IT--Management
Apr 29, 2001
21
0
0
AU
What I want to do is use a variable from a select query to label an Excel worksheet I want to export to. The variable is Collected by a standard select query without the use of VBA Code. I would think this isn't possible unless the variable for the query was obtained via VBA code. I was hoping someone would be able to give me a difinative answer one way or the other.

Thanks.
 
use a variable from a select query
Take a look at the DLookUp VBA function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top