24 hours ago: Power and Internet are out in my office due to Hurricane Ian. Click for details.
 
Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Seminars > Open Programs >
Access Open Programs Seminar

Open External Files and Web Pages in Access


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Buy Now

Welcome

This seminar will teach you how to open other programs, documents, and custom web page addresses from inside your Microsoft Access databases. Have you ever wanted to build a database to store an unlimited number of documents or other file attachments with each record?

Perhaps you'd like to double-click on any of those files and have them automatically open up in the appropriate program? Open a Word document representing the employee's resume, or automatically have an Excel spreadsheet open up for the client's purchase order. Perhaps you'd like to click on a button next to the customer's address and have your web browser open up directly to that address into Google Maps?

Resources

Main Seminar Goals

  • How to display external images in Access Forms
  • Allow unlimited external attachments per customer
  • Use the Shell function to open files of known type
  • How to determine which application to open
  • Use ShellExecute to open w Windows default app
  • Open a Web page to a custom URL in default browser
  • Load Google Maps to a Specific Address

Topics Covered

We'll start out by building the sample database we'll use in class. This will be a simple customer table, with a related (one-to-many) table to store an unlimited number of attachments per customer. We'll create a centralized Attachments folder and we'll copy some sample files there. You'll learn how to display an external image on a form.

unlimited file attachments per customer

 

Next you will learn how to double-click on those attachment filenames and have them open up in the program you specify using an event with a little bit of VBA code and the SHELL function. You will learn how to determine what program to use to open the file (TXT files in Notepad, DOCX files in Word, etc.)

SHELL function access

 

It's nice to be able to specifically control which program you want to open a specific type of file, but sometimes you want Access to just use the default program that's installed in Windows. This is called the "default handler" for that file type. You may not know if they have Adobe Acrobat installed for PDF files, so in that case Windows might open them in Word. In the next lesson we'll learn about the ShellExecute function which can deal with this scenario.

shellexecute function shellexec

 

Next we'll build a button that we can click on to open the customer's address up directly in Google Maps. This will involve creating a custom URL and launching the default browser. You'll also see how you can open Windows Explorer to browse folders, and how to use a mailto link to send email.

open google maps to customer location

 

Finally we'll learn some advanced features about the ShellExec subroutine we build in class. We'll see how to set up error handling for when a file cannot be opened, learn about public and private constants, and learn about different arguments for ShellExec like "OPEN" and "PRINT".

If you want to be able to work with external files and programs with Access, this is the perfect seminar for you. You will learn everything mentioned above. You will have access to the full database that we build in class with all of these features. If you have any question whether this seminar is right for you, please feel free to contact me.

Pre-Requisites

It is strongly recommended that you have completed my entire Access Beginner and at least the first three lessons in my Expert series.

Version

I am using Access 2013 in this seminar, however the lessons are perfectly valid for all versions of Access with a few minor addendums that I have noted on the Lessons Page.

Enroll Today

Enroll now so that you can watch these lessons, learn with us, post questions, and more.

Questions?

Please feel free to post your questions or comments below. If you are not sure as to whether or not this product will meet your needs, I'd rather help you before you buy it. Remember, all sales are final. Thank you.

Keywords

microsoft access open other programs, shell, shellexec, shellexecute, launch exe, open pdf, open word doc, open excel, open web page, open web browser, open google maps, show customer on map, database, microsoft access, access tutorial

 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

Check out these other pages that may be of interest to you:

9/27/2022Report Border
9/26/2022First Day of Month
9/23/2022Before Update
9/22/2022Synchronize Subforms
9/21/2022InputBox
9/20/2022Link Master Fields
9/19/2022DateSerial
9/18/2022Sequential Annual Coding
9/16/2022Scope
9/15/2022Resize Forms
 
 

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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: access seminar open other programs, shell, shellexec, shellexecute, launch exe, open pdf, open word doc, open excel, open web page, open web browser, open google maps, show customer on map, database, microsoft access, access tutorial  Page Tag: whatsnew  PermaLink  Microsoft Access Open Programs Seminar