Re: How to determine record number in recordset.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ThomasAJ wrote:

I do NOT want to use a combo box.

The objective is to display records in a list box and then programmatically
select one (lst.selected(x)) based on contents of a text box.

eg the list box source is a query. The user enters a person's name in a text
box. I do a FindFirst on the same query and locate the record. If I knew it
was say record number 52 then I can easily highlight it in the list box.

I have heard there is no such thing as a record number concept in DAO.


Recordsets have the AbsolutePosition property, which should
do what you asked for.

Note that if the value you are searching for is an exact
match for the list box's BoundColumn, you can select the row
by just setting the list box's Value to the name in the text
box.

--
Marsh
MVP [MS Access]
.



Relevant Pages

  • Re: Display Null Values - Please Help
    ... Access will always display Null fields in a query if they are ... if what you are after is to display records from a ... To create an outer join in Access, ... the Region and Group tables as lookups. ...
    (comp.databases.ms-access)
  • Re: Display Null Values - Please Help
    ... Access will always display Null fields in a query if they are ... if what you are after is to display records from a ... To create an outer join in Access, ... the Region and Group tables as lookups. ...
    (comp.databases.ms-access)
  • Re: CUSTOMISED GROUPING ON REPORT?
    ... >I have a report, based on a query which I have grouped on a field called ... >in the next sections i want to display records where the source = ... grouping field in the query's field list and use that in the ...
    (microsoft.public.access.reports)
  • RE: Parameter query......query!
    ... In the column of the query bring down your date field ... > My end result is a report that will display records for a certain ... > I need to create a parameter query that prompts the user to enter a ...
    (microsoft.public.access.queries)