Solved

Access 2007 goto specific record while in the form

Posted on 2010-09-13
4
626 Views
Last Modified: 2012-05-10
Howdy all,

Silly one:  I have a form onto of a table and I want to be able to use a "go to" to jump to a specific record. number.

The form is called "frm log" and the record I want to use is the unique log number "ID", I have created a field on the form to add the record number I want to jump too and a button, but dont seem to be able to get the VB behind the button to work.

All help greatfuly received.
0
Comment
Question by:Smartin
[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
4 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 33661062
Smartin,

In the Click Event of your button, you may try and copy the code below:

Me.Filter = "[ID]=" & Nz(Me.[txtField],0) & ""
Me..FilterOn = True

Sincerely,

Ed

0
 

Accepted Solution

by:
Smartin earned 0 total points
ID: 33661121
Amazing - spot on!!!

Many thanks...
0
 
LVL 6

Expert Comment

by:JVWC
ID: 33661134
If you use the wizard to add a combobox and select the option to create one that finds a record in your form, then add the fields you want, should do it.

Cheers
JC
0
 
LVL 9

Expert Comment

by:borki
ID: 33661150
If you don't want to use a filter check out this solution:

 Dim rs As DAO.RecordSet

    Set rs = Me.Recordset.Clone
    rs.FindFirst "[ID] = '" & Nz(Me.[txtField],0) & "'"
    Me.Bookmark = rs.Bookmark
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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