[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Access 2007 goto specific record while in the form

Posted on 2010-09-13
4
Medium Priority
?
630 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

649 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