Solved

VBA using ShellExecute to Open a flowchart file

Posted on 2013-11-11
3
433 Views
Last Modified: 2013-11-15
I have a client who uses RRFlow software to create flowcharts. I have an Access application that permits the saving of paths to various file types to be related to specific pieces of equipment, for example.

From within the application I have an On Double-click to permit the user to view associated documents from within the application.

For example:

Equipment ABS

* C:\.....\ABS.doc
* C:\.....\ABS.xls
* C:\.....\ABS.pdf
* C:\.....\ABS.txt

etc...

When the user double-clicks the record my code opens the file in its native application.

I use the ShellExecute funtion and it works great -- however -- I am having a problem with the flowchart file type with an extension of .flo.

Does anyone have any ideas?
0
Comment
Question by:Ei0914
[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
  • 2
3 Comments
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 500 total points
ID: 39639582
Also try Application.Hyperlink YourFile.flo

This (either, Ithink) should work -- assuming that you have the default application is set correctly for files with that extension.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39639590
This shows you how to set the default application for a file type in Windows 7.  The exact steps will differ based on your operating system:
http://windows.microsoft.com/en-us/windows7/change-the-program-that-opens-a-type-of-file
0
 

Author Closing Comment

by:Ei0914
ID: 39652178
As always, thanks!
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

729 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