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.

How to get text qualifiers around empty fields in an export to CSV

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Microsoft.com - 02 Aug 2004 15:18 GMT
I have an access table (first name, middle initial, last name).  I need to
export the table into a CSV file with " delimiters on EVERY field.  Access
is choosing not to include the quotes around empty fields.

In short, this throws off another program I have that imports the CSV file.
Does anyone know how I can get the "" around empty files.

NOW the export file looks like this
"John",,"Doe"

I NEED IT TO LOOK LIKE THIS
John","","Doe"

many thanks.
admin@mcsinfotech.com
John Nurick - 02 Aug 2004 19:43 GMT
Here's one way.

Create a query and export that. In the query, use the NZ() function in
calculated fields to replace any Null values with empty strings. In the
query design grid they will look like this:

    fMyField: Nz([MyField], "")

>I have an access table (first name, middle initial, last name).  I need to
>export the table into a CSV file with " delimiters on EVERY field.  Access
[quoted text clipped - 11 lines]
>many thanks.
>admin@mcsinfotech.com

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
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.