hyperlink subaddress to specific record

I have a search form in my MS 2K database that retrieves records with selected minimal data in datasheet view. I have added an identifier column that mirrors the primary key field and have made it a hyperlink.(I'm doing this since my primary key is an autonumber field) I would like for the users to be able to click one of the returned records in datasheet view with a hyperlink and go to the applicable record on the form which contains all data.

Currently, I can get to the form by clicking on the hyperlink but it will not go to the specified record. i.e. retrieved data might be primary key field of 37 & identifier field of 37 with name, organization etc. I can click on the 37 in the identifier field and it will take me to the form but it will be on record #1.My hyperlink looks like this 37##Form frmLLDataView
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I wouldn't do this with hyperlinks - I don't know if you can pass filter strings this way.

Instead, just put some code like this in the OnClick or OnDoubleClick event (preferable) of the form:
DoCmd.OpenForm "frmLLDataView",,,"[ID]=" & Me!txtID

Just replace ID with your ID field and txtID with the control which holds this value.

You could also simulate the hyperlink by putting the above in the OnClick event of the text box which holds your current hyperlink.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
howcheatAuthor Commented:
Interim reply: I will be reviewing replies and addressing this issue within 48 hours.
howcheatAuthor Commented:
YEEESSSSS!! It works!!
Great, glad I could help!
Don't forget to accept and grade my answer ;)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.