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

Where condition from 2nd column of a list 1

Status
Not open for further replies.

PikPim

Programmer
Jul 25, 2006
15
CA
Hi, I'm trying to put a query that would be based on the second row of a list and I don't know how to do it! The farther i can go with the expression generator is like:
Forms![Partners]![lstUsers]
but i would like it to be somethin like:
Forms![Partners]![lstUsers].firstname
(where firstname is the 2nd column of the list...)
 
Try:

Forms![Partners]![lstUsers].Columns(1)

Ed Metcalfe.

Please do not feed the trolls.....
 
BTW - It's Columns(1) rather than Columns(2) because the columns property of a listbox indexes from 0, not 1.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top