473,498 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Command Line - Export

4 New Member
Hello,

Is there a way to use the command line (Access 2003) to export Access tables to text files?

Thanks

skkydiver
Jan 11 '08 #1
4 7459
zaidlig
45 New Member
Create a macro "Macro1" that exports the text file you want and closes the DB.

Then add "/x Macro1" to you command line.
Jan 11 '08 #2
skkydiver
4 New Member
Create a macro "Macro1" that exports the text file you want and closes the DB.

Then add "/x Macro1" to you command line.

Thank you for the reply, I tried your suggestion and I have not been able to get it to do what I want. Specifically (failed to mention this earlier) that I would like this to be dynamic in nature, that is, I would like to be able to specify the following at the time of the execution of the Macro:

1. name of the source database
2. format of the output ( comma or tab delimited)
3. name of the output file

Is this possible?

thanks
Jan 12 '08 #3
zaidlig
45 New Member
Thank you for the reply, I tried your suggestion and I have not been able to get it to do what I want. Specifically (failed to mention this earlier) that I would like this to be dynamic in nature, that is, I would like to be able to specify the following at the time of the execution of the Macro:

1. name of the source database
2. format of the output ( comma or tab delimited)
3. name of the output file

Is this possible?

thanks
Here is the link to the full set of command line switches.

http://support.microsoft.com/kb/209207

However why not just either create an Access object in whatever is calling Access (such as Word or Excel) and feed it all your variables directly or link to the Access tables that have the data you want exported.
Jan 12 '08 #4
ADezii
8,834 Recognized Expert Expert
Hello,

Is there a way to use the command line (Access 2003) to export Access tables to text files?

Thanks

skkydiver
Expand|Select|Wrap|Line Numbers
  1. 'The following code will transfer the Table you specify to a Delimited Text File
  2. DoCmd.TransferText acExportDelim, , "<Table Name>", "C:\<Absolute Path>\<File Name>.txt", True
Jan 12 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4340
by: Klaus Baumgarten | last post by:
Hi! I' m sitting here now for days and I still get no conclusion on my problem. I have an MS ACCESS .mdb File and I would like to export it with dtswiz.exe (from MS SQL Utility Tools) via...
9
5022
by: Tommy Lu | last post by:
Hi, wondering if there is a way to interact the shell command with the C# program? For example, if I type c:\>ver it then suppose to return the version of the OS I am currently using... or ...
6
8702
by: no_spam_for_gman | last post by:
Hi, I have been using the db2 export function for quite sometimes. Everytime I want to use it I have to remove every carriage return from my SQL statement and have it all on one line as shown in...
3
10305
by: jlw16 | last post by:
Hello, I’m trying to use my vbs script to get a command line argument for a file which will need to be opened through QuickTestPro. Below are the commands I’m using: Dim qt_file 'As String ->...
2
5498
by: johnxhc | last post by:
I am trying to use sos extension but almost half of the sos command do not work, for example 0:027!findtable No export findtable found 0:027!bpmd No export bpmd found 0:027!GCHandleLeaks...
1
7985
by: bswanstrom | last post by:
Hi there, trying to execute a db2 sql statement from a command line from UNIX. Here is the command I'm running db2 export to /work/ftp/lt/sku_insert.csv of del select digits'('UPC_NO')', UPC,...
1
10464
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
3
1855
by: KEMoore | last post by:
Hello, I am using SQl 2000 and running several stored procedures from a batch file. I want to be able to run a few small queries at the end of the file and export the results to a text file. So...
5
6984
by: situ | last post by:
Hi, I have Db2 ver 9.5 for LUW , running on two different system, one is linux and other on windows and have the table with same defination on both the system. i exported blob column of the...
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.