Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Hyperlinks in Email
Robert Braga 
       
12 months ago
Is it possible to put a hyperlink in an email that would open an access database to a specific record?  I'm using access as a drawing approval system in my office.  I'd like to send out reminder emails to people so that they remember to go into the database to approve the drawings (pdfs).
Sami Shamma  @Reply  
             
12 months ago
I would also be interested to know if something like this can be done.
Kevin Robertson  @Reply  
          
12 months ago
Create a Batch File and add the following:

@echo off
start "" "C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE" "C:\Your\Database\Path\YourDatabase.accdb" /cmd 9


Saved As: OpenCustomer9.bat
Paste link into your email client. Example: file:///C:/Users/YOURUSERNAME/Documents/OpenCustomer9.bat

Make sure you add the full path to YOUR database.
cmd 9 means it will open at ID 9

Add the following to your Start Up Form:

Private Sub Form_Load()

    Dim cmd As String
    cmd = Command$
    
    If IsNumeric(cmd) Then
        DoCmd.OpenForm "CustomerF", , , "CustomerID = " & cmd
        Me.TimerInterval = 200
    End If

    SetCaptions

End Sub


Private Sub Form_Timer()

    On Error Resume Next
    Forms("CustomerF").SetFocus
    Me.TimerInterval = 0
    
End Sub


This will open the database, then open CustomerF at CustomerID 9 and give the Form the Focus.
Alex Hedley  @Reply  
           
12 months ago
You can pass arguments to Access using the /cmd switch with your parameter(s)
Compact Cmd Line
You would then have to handle the input however you need.

Does Access have a URI protocol?
Registering an Application to a URI Scheme
https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN
myapp://users/edit/5

Launch the default Windows app for a URI
https://learn.microsoft.com/en-us/windows/apps/develop/launch/launch-default-app

There are security concerns you need to think about.

Richard any ideas?
Bill Carver  @Reply  
      
12 months ago
This is a solution but it would involve installation and maintenance of probably multiple machines and it does open a significant hole in security.

What I recommend is a simple message that if the numberof drawings needing approval >0 send an email.  Then have a form that opens on startup for the user if the same condition exists.   It would be a continuous form that shows all the drawings needing approval.  Also have an easy button just in case the database is already open.
Richard Rost  @Reply  
          
12 months ago

Richard Rost  @Reply  
          
12 months ago
The guys have done an excellent job of explaining how it possibly could be done, but this is one of those situations where do you really need it? I mean, if you have the database set up with multiple users, then all they have to do is open the database using whatever shortcut you gave them on their desktop, and then you could program in the database a big pop-up that says, "Yo, you've got to approve your drawings." The reminder email itself should be enough to jar their memory. I wouldn't bother sending them a link to open the database. Is it possible? Yes, but as other people have mentioned, it does open some security risks with batch files and stuff. This is one of those automation things that I wouldn't bother.

Or if you really wanna go high tech, you could move the data up to SQL Server and then create a web portal where they could approve their drawings so that you could click on the hyperlink in the email that would take them to the web portal. It all depends on how much work you wanna put into it for something that I think is unnecessary, but that's just me.
Robert Braga OP  @Reply  
       
12 months ago
Thank you everyone.  I don't think the IT department where I work would appreciate me opening up security risks.  So I better stick with the link-less reminder email route.  One more question, is it possible to program access to automatically send out emails every Monday and Thursday, for example?

Thanks, Bob
Richard Rost  @Reply  
          
12 months ago
Sure. I've got several videos on reminders. You just have to trigger it somehow. You can make it an event for when you log in, or when anyone logs in, or you can have a PC act as a server and it can do it.

Reminder Popup
Reminder Popup Date
Richard Rost  @Reply  
          
12 months ago
Instead of a reminder, queue your emails.
Robert Braga OP  @Reply  
       
12 months ago
Thanks Richard.  I love your videos!  What do you mean by queueing my emails.
Richard Rost  @Reply  
          
12 months ago
My apologies. What you'll need to do is create a loop that will send your emails out, and I've got several videos that explain that.

Send Email
Send Email with CDO

At the point where the reminder would run, instead of popping up a reminder, you will instead have that code send out the emails. You'll probably need a recordset to loop through them to loop through the recipients and send an email to each one. This is a little more advanced. I cover stuff like this in my email seminar, but you'll definitely need some VBA under your belt first.
Richard Rost  @Reply  
          
12 months ago
I'll talk about this more in today's Quick Queries video. Recording it now.
Robert Braga OP  @Reply  
       
12 months ago
Oh yeah,  that's my plan.  I figured out how to concatenate the email addresses and put them into one email yesterday.  Your "How to Fix Run-Time Error 3061 Too Few Parameters" was a big help.  That error was driving me crazy until I watched your video.  Thanks!
Richard Rost  @Reply  
          
12 months ago
That's what I'm here for. :)
Tanin Uthayanaka  @Reply  
   
12 months ago
Just what I have been look for :)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 5:50:03 AM. PLT: 0s