A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Export Access Query to a pipe delimited .csv file



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 02:27 PM posted to microsoft.public.access
PSULionRP
external usenet poster
 
Posts: 116
Default Export Access Query to a pipe delimited .csv file

Fairly new to Access VBA.

How can I export an Access Query to a pipe delimited .csv file???

I believe the VBA Syntax is...

DoCmd.TransferText acExportDelim, _
"Specification Name", "qry_name", "C:\PathName\FileName.csv"

How do I specify and indicate to make it pipe delimited, "|"???

Thanks for your review and hopeful for a replay.

PSULionRP

  #2  
Old March 9th, 2010, 02:41 PM posted to microsoft.public.access
chris
external usenet poster
 
Posts: 2,039
Default Export Access Query to a pipe delimited .csv file

You would set that up in your specification, and save it. That would be the
"specification name" parameter.

"PSULionRP" wrote:

Fairly new to Access VBA.

How can I export an Access Query to a pipe delimited .csv file???

I believe the VBA Syntax is...

DoCmd.TransferText acExportDelim, _
"Specification Name", "qry_name", "C:\PathName\FileName.csv"

How do I specify and indicate to make it pipe delimited, "|"???

Thanks for your review and hopeful for a replay.

PSULionRP

  #3  
Old March 9th, 2010, 02:50 PM posted to microsoft.public.access
PSULionRP
external usenet poster
 
Posts: 116
Default Export Access Query to a pipe delimited .csv file

Can you be a little more specific Chris?? This is the first time I have ever
attempted this. Or provide me an education link that might explain this in
detail?

Thanks Chris.

"Chris" wrote:

You would set that up in your specification, and save it. That would be the
"specification name" parameter.

"PSULionRP" wrote:

Fairly new to Access VBA.

How can I export an Access Query to a pipe delimited .csv file???

I believe the VBA Syntax is...

DoCmd.TransferText acExportDelim, _
"Specification Name", "qry_name", "C:\PathName\FileName.csv"

How do I specify and indicate to make it pipe delimited, "|"???

Thanks for your review and hopeful for a replay.

PSULionRP

  #4  
Old March 9th, 2010, 03:39 PM posted to microsoft.public.access
chris
external usenet poster
 
Posts: 2,039
Default Export Access Query to a pipe delimited .csv file

First, you need to create a query that selects all the data that you want.
Save it. Then, run the query, and click on FILE, EXPORT. You will get the
export query window. Under the SAVE AS TYPE dropdown, select text files and
then click on export. The export text window will appear. Select delimited,
enter the pipe symbol for delimiter, and click on advanced. Then, select
SAVE AS, and enter a name. This will be the "Specification Name". Save the
query. The query name will be "qry_name".

Hope this helps.


"PSULionRP" wrote:

Can you be a little more specific Chris?? This is the first time I have ever
attempted this. Or provide me an education link that might explain this in
detail?

Thanks Chris.

"Chris" wrote:

You would set that up in your specification, and save it. That would be the
"specification name" parameter.

"PSULionRP" wrote:

Fairly new to Access VBA.

How can I export an Access Query to a pipe delimited .csv file???

I believe the VBA Syntax is...

DoCmd.TransferText acExportDelim, _
"Specification Name", "qry_name", "C:\PathName\FileName.csv"

How do I specify and indicate to make it pipe delimited, "|"???

Thanks for your review and hopeful for a replay.

PSULionRP

  #5  
Old March 13th, 2010, 05:34 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default Export Access Query to a pipe delimited .csv file


"PSULionRP" wrote in message
...
Fairly new to Access VBA.

How can I export an Access Query to a pipe delimited .csv file???

I believe the VBA Syntax is...

DoCmd.TransferText acExportDelim, _
"Specification Name", "qry_name", "C:\PathName\FileName.csv"

How do I specify and indicate to make it pipe delimited, "|"???

Thanks for your review and hopeful for a replay.

PSULionRP


 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.