UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Export Table To Pipe Delimited Text File, Office 2007    
 
   
fiftyfour
post Feb 15 2012, 04:51 PM
Post #1

UtterAccess Guru
Posts: 774
From: Illinois



Through VBA, I'm using the TransferText method to create a delimited text file from a table. Problem is: I need to delimit the text file with a Pipe "|" symbol. Unfortunately, the text file exports it with commas being the delimiter. I also need to have text values surrounded by double quotes (which is does now). How can I choose the delimiter? I use to be able to build specifications, but I can't seem to find the spec wizard now.

Your help is always appreciated.

Thanks,
Go to the top of the page
 
+
theDBguy
post Feb 15 2012, 04:56 PM
Post #2

Access Wiki and Forums Moderator
Posts: 48,021
From: SoCal, USA



Hi,

Try "manually" exporting the table first. The Spec Wizard should walk you through the process. If it does, you can then save the spec and use it in your code. If not, then perhaps you'll need to either turn the Wizard on (not sure how to do that) or "repair" your install of Access.

Just my 2 cents... (IMG:style_emoticons/default/2cents.gif)
Go to the top of the page
 
+
fiftyfour
post Feb 15 2012, 05:09 PM
Post #3

UtterAccess Guru
Posts: 774
From: Illinois



Thanks, I tried to export it manually, but the spec wizard never popped up. At the end of the export, Access prompts you to save the Export, but the next resulting window really does not give you an option to pick the delimiter. I also do not know how to fire the spec wizard. Right now I'm messing with the MSysIMExSpecs table...we'll see what happens there.

Thanks,
Go to the top of the page
 
+
fiftyfour
post Feb 15 2012, 05:21 PM
Post #4

UtterAccess Guru
Posts: 774
From: Illinois



Found the wizard. When you export the table manually, the first window will prompt you to check the "Export Data with formatting and layout". Don't select that check box and the wizard will be exposed.

Thanks,

Go to the top of the page
 
+
theDBguy
post Feb 15 2012, 05:25 PM
Post #5

Access Wiki and Forums Moderator
Posts: 48,021
From: SoCal, USA



Hi,

Glad to hear you got it sorted out. Good luck with your project.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 04:32 AM

Tag cloud: