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!

Retrieving data from currently selected row in a results subform

Status
Not open for further replies.

memberFDIC

Programmer
Jan 22, 2009
10
0
0
US

I am using a Filter on a results subform and would like to know how to retrieve data from the currently selected row.

1) How do I know what row the user has placed their mouse cursor onto?

2) How do I retrieve data from a particular cell/field in that currently selected row?


E.g.,

Me.Results.Form.Filter = "(ZIPCODE > 22401) and (ZIPCODE < 23000)"

This generates 24 results. The user clicks on the 3rd row. How do I retrieve the data in the CITY field for row #3 in the results subform?

Thanks.


 
The value of that form field is the value of the selected row.

if calling from the parent form

= me.subformControlName.Form.fieldName.value

If the code is in the subform
= me.fieldName.value

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top