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 Rhinorhino 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
Joined
Feb 11, 2002
Messages
12
Location
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)
 
How can you do this just in an Access query?
 
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