Opening a form based on individual record

swee

Registered User.
Local time
Today, 09:56
Joined
Aug 11, 2004
Messages
66
All my records are displayed on a form. Upon clicking on their respective 'View' button, I would like to open that particular record. How can I do that? I have attached a screenshot for better clarity. Thanks in advance for the help!

Regards,
Swee
 

Attachments

  • view.jpg
    view.jpg
    18.2 KB · Views: 127
Last edited:
on the OnClick event of your view button put the following:

DoCmd.OpenForm "FormName" , , , "[Fieldname]=" & Me.Fieldname
 
You only need one button in the footer and the Button Wizard will create the code for you
 
Thanks guys. Got it working using the OpenForm method.
 

Users who are viewing this thread

Back
Top Bottom