Solved

Navigate to a specific record based on matching unique data

Posted on 2013-01-13
1
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

726 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