Share via

Pass parameter to Access Form through Hyperlink in email

Anonymous
2013-12-03T13:47:52+00:00

Hi,

Is it possible to pass parameter to a Access Form through Hyperlink in email to search a record?

The target From is a Start up from, opens automatically when database opens. I want to display specific record.

Regards

Atif

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2013-12-04T02:56:18+00:00

    I'm pretty sure you will have to add the path to msaccess and the /cmd argument like I suggested. Did you try enhancing your <a> tag with this extra syntax?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-12-03T14:30:32+00:00

    Hi Tom,

    Thank you for your reply.

    When user creates a new record. Access sends an email message with a hyperlink to database and record ID in Subject line.

    "<a href=""" & "C:\Users" & GetLogOnUser & "\Documents\NC Reports\NonConformanceReport_v1.3.accdb" & """>" & _

    "Click here to access the NCR Database" & "</a > "

    The recipient clicks on the Hyperlink, it opens the database and start-up Form.

    What I want is to include Record ID i.e. OrderID in hyperlink and sent it back to database as search criteria. So, when the recipient click on the Hyperlink in email it not only open the Form but also display that record.

    Regards

    Atif

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2013-12-03T14:13:45+00:00

    What kind of hyperlink are you thinking of? The only one I can think of is an Access command line, like this:

    [path_to]msaccess.exe [path_to]your.accde /cmd OrderID=123

    In your startup code you can then check Command$ and get "OrderID=123" which you can use to open your form to that record.

    Was this answer helpful?

    0 comments No comments