Solved

Navigate to a specific record based on matching unique data

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

910 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

22 Experts available now in Live!

Get 1:1 Help Now