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 / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

open/save box question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 02 Nov 2006 02:55 GMT
Hi,
I'm using Access 97 and the ahtCommonFileOpenSave command to bring up the
Open/Save box.
I need to set two file locations - the first is the file I want to import
and the second is the file name I want to save the output file as.
The problem I'm having is the second Open/Save box doesn't appear when I
call it the second time. Here's my code:

strXLS = ahtCommonFileOpenSave(InitialDir:="H:\Data\", Filter:="Excel Files
(*.xls)", FilterIndex:=1, DialogTitle:="Locate the data file to import...",
FileName:=conDefXLSName, OpenFile:=True)
If IsNull(strXLS) Or strXLS = "" Then
   GoTo CleanExit
End If

strSaveAs = ahtCommonFileOpenSave(InitialDir:="H:\Data\", Filter:="Excel
Files (*.xls)", FilterIndex:=1, DialogTitle:="Save output file as...",
FileName:=strDiffName, OpenFile:=False)
If IsNull(strSaveAs) Or strSaveAs = "" Then
   GoTo CleanExit
End If

Can anyone suggest what might be happening and a solution?

Thanks
Dave
Stefan Hoffmann - 02 Nov 2006 09:58 GMT
hi Dave,

> I'm using Access 97 and the ahtCommonFileOpenSave command to bring up the
> Open/Save box.
> Can anyone suggest what might be happening and a solution?
Debug your third party module, where your function is declared.

mfG
--> stefan <--
 
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.