| separated csv output

H

Henry

is there a way to output table data | separated ?

I tried:
DoCmd.TransferText acExportDelim, ..............
CurrentDb.Execute "select * into [Text;FMT=Delimited;HDR=Yes;Database=C:\.....

but both output ; separated data.

henry
 
K

Klatuu

I would recommend the TransferText method
But, you will need to create an Import/Export spec to specify the separator
and other rules. To do this, do the transfer once manually. When you get to
the Export wizard, click on Advanced. You will be able to configure the
output at this point. Once you have it like you want it, click Save As and
give the spec a name. Then you can use that name in your TransferText method.
 
H

Henry

sorry I cant even find the Export wizard |-|

where is that hided ?

Klatuu said:
I would recommend the TransferText method
But, you will need to create an Import/Export spec to specify the separator
and other rules. To do this, do the transfer once manually. When you get to
the Export wizard, click on Advanced. You will be able to configure the
output at this point. Once you have it like you want it, click Save As and
give the spec a name. Then you can use that name in your TransferText method.

Henry said:
is there a way to output table data | separated ?

I tried:
DoCmd.TransferText acExportDelim, ..............
CurrentDb.Execute "select * into [Text;FMT=Delimited;HDR=Yes;Database=C:\.....

but both output ; separated data.

henry
 
K

Klatuu

First, in the database window, place the cursor on the table you want to
export.
From the main menu:
File, Export

Now you have the common open/save dialog. Identify the path and filename.
Use .csv as the file extension. (Select "Text File")

Click Export

Now you have the wizard in front of you. Here is where you click on Advanced.

Henry said:
sorry I cant even find the Export wizard |-|

where is that hided ?

Klatuu said:
I would recommend the TransferText method
But, you will need to create an Import/Export spec to specify the separator
and other rules. To do this, do the transfer once manually. When you get to
the Export wizard, click on Advanced. You will be able to configure the
output at this point. Once you have it like you want it, click Save As and
give the spec a name. Then you can use that name in your TransferText method.

Henry said:
is there a way to output table data | separated ?

I tried:
DoCmd.TransferText acExportDelim, ..............
CurrentDb.Execute "select * into [Text;FMT=Delimited;HDR=Yes;Database=C:\.....

but both output ; separated data.

henry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top