Datasheet Form - Click specific record and open (1 Viewer)

mcalpine

Registered User.
Local time
Today, 22:07
Joined
Apr 8, 2013
Messages
16
Hi,

I was looking for a little help.

I have created a Datasheet Form which when opens shows lots of records. I was looking to see if there was a way that if i clicked on a specific field name within a record it would open a new form with all the information of that record only.

Any help would be greatly appreciated. Thank you

Kind Regards

M
 

mcalpine

Registered User.
Local time
Today, 22:07
Joined
Apr 8, 2013
Messages
16
Hi,

I have found the code to open up in a form, please see code below.

Docmd.Openform "Form Name"

but when i click on a specific record it opens up the first record and not the record that i clicked on to view.
 

JHB

Have been here a while
Local time
Today, 23:07
Joined
Jun 17, 2012
Messages
7,732
If you base the form data of a query, then you can use a hyperlink.

Add a field to the query, for example:
Edit:"Edit"
Drag the field on to the form as a TextBox
Set the TextBox's Is Hyperlink property to Yes
Add a procedure to the TextBox's OnClick Event, which opens your pop-up form.

Then it looks like the attached picture.
 

Attachments

  • Edit.jpg
    Edit.jpg
    26.9 KB · Views: 192

mcalpine

Registered User.
Local time
Today, 22:07
Joined
Apr 8, 2013
Messages
16
Hi,

Not sure how to carry this task out......sorry for being stupid...
 

mcalpine

Registered User.
Local time
Today, 22:07
Joined
Apr 8, 2013
Messages
16
Perfect. thank you very much for your help......

You are a star.....
 

Users who are viewing this thread

Top Bottom