Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 24th, 2004, 12:21 PM
theWa theWa is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 theWa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FileDialog in MSAccess

I'm trying to run a selected file using the new (to Access) Application.FileDialog tool.

My code is like this:
With Application.FileDialog( _
MsoFileDialogType.msoFileDialogOpen)
If .Show Then
' I want to run the program here. That is, if a ".xls" file is sellect open up that file, if a ".doc" file is selected ... run it.
.Execute(.SelectedItems(1), whatever) doesnt seem to work. (at least the way i have attempted to construct it)
End If
End With

One thing i tried was to take the selected item and copy it to a hyperlink field in the table that is on the form.
This worked great ... but I had to click there again .. I mean after I had already selected it in the file dialog window.
So, I guess another question would be:
Is there a way in Access to automatically execute a hyperlink on a form without manually clicking on it. VB has the .follow property but i can't use that on an Access form.

Thanks all in advance,

wa

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > FileDialog in MSAccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway