[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

Navigate to a specific record based on matching unique data

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
SweetingA
Asked:
SweetingA
1 Solution
 
Rey Obrero (Capricorn1)Commented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now