Solved

Navigate to a specific record based on matching unique data

Posted on 2013-01-13
1
315 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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now