Solved

MS Access : Goto record

Posted on 2004-08-09
2
1,011 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
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

864 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

23 Experts available now in Live!

Get 1:1 Help Now