Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / September 2005

Tip: Looking for answers? Try searching our database.

Change File Extension

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kenny G - 16 Sep 2005 20:18 GMT
Hello,

Access XP and Office XP Object Library

Below is the code I am currently using to use fileDialog to open the dialog
from Access from a command button.   The dialog open nicely and I can select
from many files based on my initialfilename.  

I would like to continue by copying the selected string as a .txt file and
then moving that new .txt file to my C drive.

Any help would be appreciated.

Private Sub cmdOIDD_Click()

  Dim dlgOpen As FileDialog
 
  'Set dlgOpen = Application.FileDialog(msoFileDialogOpen)
  Set dlgOpen = Application.FileDialog(msoFileDialogFilePicker)
 
  With dlgOpen
   .InitialFileName = "W:\Monthly\????????.CENSUS-UH-NS-SUMMARY-IP.DOC"
   .Show
   .AllowMultiSelect = False
   
   End With
End Sub

Thanks,
Signature

Kenny G

Ken Snell [MVP] - 16 Sep 2005 21:27 GMT
Check out the FileCopy method in Help file. That copies a file from one
place to another.

To move a file, use the Name method.

Signature

       Ken Snell
<MS ACCESS MVP>

> Hello,
>
[quoted text clipped - 27 lines]
>
> Thanks,
Kenny G - 19 Sep 2005 14:21 GMT
Ken,

Thanks for your reply.  I'll give it a go this AM
Signature

Kenny G

> Check out the FileCopy method in Help file. That copies a file from one
> place to another.
[quoted text clipped - 32 lines]
> >
> > Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.