View Single Post
  #2  
Old June 1st, 2010, 04:13 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Using the second column of a lookup field in row source

Not really sure what it is you're trying to do.

To refer to the value in the first column of the currently selected row of
list box BoxA, you refer to Me!BoxA.Column(0) (or
Forms!NameOfForm!BoxA.Column(0))

To refer to the value in the second column of the currently selected row of
list box BoxA, you refer to Me!BoxA.Column(1) (or
Forms!NameOfForm!BoxA.Column(1))

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"Lawrence Chu" wrote in message
...
I'm working on a form on a database in which I need to do a lookup on
one combo box that contains two columns, and a followup combo box
requires that I match something in the second column. So, basically,
if I have Box A, which looks up a BoxA_ID column (column 1) and a
BoxA_Value (column 2) column, I'd like to create a statement in Box B
where I'm trying to match a value with the BoxA_Value column.

Can anyone help me here?