?
Solved

hyperlink subaddress to specific record

Posted on 2003-02-24
5
Medium Priority
?
297 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:howcheat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 800 total points
ID: 8012912
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.
0
 

Author Comment

by:howcheat
ID: 8209096
Interim reply: I will be reviewing replies and addressing this issue within 48 hours.
0
 

Author Comment

by:howcheat
ID: 8239368
YEEESSSSS!! It works!!
0
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 8239392
Great, glad I could help!
0
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 8239397
Don't forget to accept and grade my answer ;)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
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.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses

801 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