Solved

Execute file based on associated program

Posted on 2006-11-07
3
205 Views
Last Modified: 2010-04-30
I want to be able to run files based on what their associated program is. For example, I have selected a MDB databse file, how can I have it 'executed' so that access opens it and it runs?

Cheers,

`Andy
0
Comment
Question by:Andy1
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Shiju Sasidharan earned 250 total points
Comment Utility
you can use shellexecute API

http://vb-helper.com/howto_shellexecute.html
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now