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!

Reference column in list box that is not the bound one

Status
Not open for further replies.

wandan

Technical User
Dec 16, 2001
101
0
0
US
Hi there,

I have a list box that has name and userid as the two columns. The userid is my Bound Column because I use that in most of my queries and code. But, I have at least one case where I want to show the name selected -- like in a report header. Is there a way to reference the unbound column?

Thanks.
 
listboxname.column(1)
listbox column are zero based
 
wandan said:
the name selected -- like in a report header
Don't you have the UserID so you can add the table with the User Name field(s) into the report's record source?

IMO, you shouldn't reference the control from the form in the report.

Duane
Hook'D on Access
MS Access MVP
 
Thanks for the reponses! listboxname.column(1) worked perfectly!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top