Solved

Navigate to a specific record based on matching unique data

Posted on 2013-01-13
1
349 Views
Last Modified: 2013-01-13
Hello Experts,

I would like to navigate to a record based on unique data in a table matching a data in a text box on a form.

E.g. GoToRecord where tbl_xyz.[UniqueField] = Forms!frm_xyz.[SearchCriteria]

Can anyone help please?

Thanks
0
Comment
Question by:SweetingA
1 Comment
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38772336
you can use


with me.recordsetclone
      .findfirst "[UniqueField]=" & me.[SearchCriteria]
     if not .nomatch then
       me.bookmark=.bookmark
       else
       msgbox "Record not found"
    end if

end with


if Uniquefield is Text data type, use this

with me.recordsetclone
      .findfirst "[UniqueField]='" & me.[SearchCriteria] & "'"
     if not .nomatch then
       me.bookmark=.bookmark
       else
       msgbox "Record not found"
    end if

end with
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question