B
Bob
running access 2k - all I want to do is a SIMPLE pipe-delimitted
export with short dates!!!
I HAVE a saved export specification that selects a "|" as delimitter.
I AM exporting a query that uses format() to format a short date, and
numbers with NO decimals.
here's the command I'm using:
DoCmd.TransferText acExportDelim, "MyExportSpec", "MyQueryWithFORMAT",
"c:\mytext.txt", True
This command DOES give me a pipe-delimitted file, but:
dates appear as "11/12/2009 0:00" DESPITE the use of: Format
([Q_myq.a_date],"mm/dd/yyyy")
integers appear as "134.00" DESPITE the use of: Format
([Q_myq.a_val],"####")
IF I execute this command:
DoCmd.TransferText acExportDelim, "", "MyQueryWithFORMAT", "c:
\mytext.txt", True
I will get a text file WITH short dates, and numbers with no decimals.
BUT this is a COMMA delimitted file. this is NOT what I want.
Last I checked in my immediate window -
?typename( format(anyvalue,"anyformat") )
this DOES indicate format returns a STRING -
so WHY THE HELL DOES A PIPE-DELIMITTED SPECIFICATION CHANGE THE FORMAT
OF A STRING VALUE!?!?!?!?
and more simply - how the hell do I export a pipe-delimitted file with
the formatting I want?!?!?
and - WHY the hell is this soooooo fricking hard?!?!?!?
I CAN SIMPLY NOT be the only person wanting to do this!!! yet I find
little results in searches for this problem.....
TIA - Bob
export with short dates!!!
I HAVE a saved export specification that selects a "|" as delimitter.
I AM exporting a query that uses format() to format a short date, and
numbers with NO decimals.
here's the command I'm using:
DoCmd.TransferText acExportDelim, "MyExportSpec", "MyQueryWithFORMAT",
"c:\mytext.txt", True
This command DOES give me a pipe-delimitted file, but:
dates appear as "11/12/2009 0:00" DESPITE the use of: Format
([Q_myq.a_date],"mm/dd/yyyy")
integers appear as "134.00" DESPITE the use of: Format
([Q_myq.a_val],"####")
IF I execute this command:
DoCmd.TransferText acExportDelim, "", "MyQueryWithFORMAT", "c:
\mytext.txt", True
I will get a text file WITH short dates, and numbers with no decimals.
BUT this is a COMMA delimitted file. this is NOT what I want.
Last I checked in my immediate window -
?typename( format(anyvalue,"anyformat") )
this DOES indicate format returns a STRING -
so WHY THE HELL DOES A PIPE-DELIMITTED SPECIFICATION CHANGE THE FORMAT
OF A STRING VALUE!?!?!?!?
and more simply - how the hell do I export a pipe-delimitted file with
the formatting I want?!?!?
and - WHY the hell is this soooooo fricking hard?!?!?!?
I CAN SIMPLY NOT be the only person wanting to do this!!! yet I find
little results in searches for this problem.....
TIA - Bob