Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show current record in a new form

Status
Not open for further replies.

inf33323

Technical User
Apr 24, 2001
26
DE
Hi there,

I have a form displayed in a table layout. Each record has attached a button. I want to show further record information in a separate from when clicking on the button next to the record.

Following code is attached to the button:

Dim ActForm As Form
Set ActForm = Form_UnterformularMainAssets
DoCmd.OpenForm ActForm.Name
DoCmd.GoToRecord acDataForm, ActForm.Name, acGoTo, ActForm.CurrentRecord

Clicking on the button opens the desired form, but always showing the FIRST record and I don wanna see this.

I would appreciate any idea. Thanks a lot,

Christa
 
I'm not exactly sure what you mean by current record. If you are talking about Form_UnterformularMainAssets's record matching the record of the orginal form, then maybe consider using a query as a record source to Form_UnterformularMainAssets and the criteria for query will be a unique identifier, such as ID number or SSN.

If this doesn't help, give me more detail.

ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top