Solved

MS Access : Goto record

Posted on 2004-08-09
2
1,039 Views
Last Modified: 2012-06-21
Hi all,

I am relatively new to Access. My question is pretty basic, so hopefully the aswer will be easy for you guys.

I have a main form to manage my contacts, and a "Search Contacts" form. This searchform works great : I can fill in the search criteria, hit the 'search' button, and it shows all records that fulfill the criteria. Next to every record there is a "Goto" button, that launches the main form with the selected record. I used the
 
    docmd.Openform formname,,,criteria

methode to open the contactsform with the resulting record.

But in this contactsform, there is only one record in the recordset.
Is there a way that when I click on the "Goto" button in the searchform, that the mainform is opened with all records in the recordset, but the bookmark is set correctly so the chosen record is visible.
I allready tried to copy the bookmark from my search-query to the recordset of my main form, but these are incompatible.

Thx
0
Comment
Question by:Thomas_VDB
[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
2 Comments
 
LVL 26

Accepted Solution

by:
dannywareham earned 50 total points
ID: 11751544
If you have a record number in your table (say RecordID), you can fetch the record via:

Me.Recordset.FindFirst "RecordID=" & "YourEntry".Value

In the onload of the form.
0
 

Author Comment

by:Thomas_VDB
ID: 11751870
Thanks a lot !
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

762 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