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!

Read a column by not using the column title

Status
Not open for further replies.

100bure

IS-IT--Management
Feb 11, 2002
12
CH
hi,

I would like to read a column out of a query by not using the column title.

Something like: =query.myquery.column[2]

Does someone know how? Is there a function in VBA or something?

thanks

reto

 
This'd be the syntax...

CurrentDb.QueryDefs("MyQuery").Fields(2)
 
You can't do that in SQL, as far as I know. But Pezamystik's example is written in VBA.

Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top