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 / August 2004

Tip: Looking for answers? Try searching our database.

Export data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hari - 30 Jul 2004 10:38 GMT
Hi,

I have created a macro with 'TransferText' action to
export the data from a query to a CSV file. How can I pass
the path for this CSV file dynamically at run time?

TIA,
Hari
Nikos Yannacopoulos - 30 Jul 2004 12:18 GMT
Hari,

Where does the path come from? Manual user entry? Selection from a given set
of options? Or what?

Nikos

> Hi,
>
[quoted text clipped - 4 lines]
> TIA,
> Hari
Hari - 30 Jul 2004 13:01 GMT
Nikos,

The path will be manually entered during run-time. Any
suggestions?

TIA,
Hari
>-----Original Message-----
>Hari,
[quoted text clipped - 14 lines]
>
>.
Nikos Yannacopoulos - 02 Aug 2004 11:46 GMT
Hari,

Assuming the user enters the path in a textbox, say txtPath, on form Form1
(the textbox must be unbound), then the File Name argument in your
TransferText action in the macro would be:

=[Forms]![Form1].[txtPath] & "YourFilename.csv"

This will read the path form the textbox on the form and concatenate the
file name.
Note:
1. The form must remain open while the macro is run; a good idea is to run
the macro from a command button on the same form.
2. The path must include a "\" at the end; alternatively, the backslash can
be included at the beginning of the file name, but in any case there needs
to be one (and only one).

HTH,
Nikos

> Nikos,
>
[quoted text clipped - 26 lines]
> >
> >.
 
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.