Re: Export specification Data Types
- From: "ragtopcaddy via AccessMonster.com" <u9289@uwe>
- Date: Wed, 26 Apr 2006 12:27:16 GMT
Apparantly there was some confusion going on between the redesigned export
specs and the query formatting. I've got it straightened out now and the
output looks just fine.
Thanks again,
Bill R
Ken Snell (MVP) wrote:
First, I went back and looked at some old posts of mine, and I did find one
from 2002 that said you could set data type in an export specification. That
post was from my "unlearned" days... sorry for the misleading info.
Second, when ACCESS exports numeric data, it will default to using "0.00" as
the export format, regardless of how you've "cast" the number by a CLng or
other function. You must explicitly format an integer value to be an
integer:
SELECT [Type], ReceiveIndexID, PayIndexID,
Format([Tenor], "0") AS TimeToMaturity,
Format([VaR],"0.000000") AS VaRFactor,
Format([01],"0.000000") AS PEFactorTB01,
Format([02],"0.000000") AS PEFactorTB02, <etc.>
FROM qryInsightTable;
Third, I recommend that you not use Type as the name of a field. It and many
other words are reserved words in ACCESS, and can create serious confusion
for ACCESS and Jet. See these Knowledge Base articles for more information:
List of reserved words in Access 2002 and Access 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;286335
List of Microsoft Jet 4.0 reserved words
http://support.microsoft.com/?id=321266
Special characters that you must avoid when you work with Access
databases
http://support.microsoft.com/?id=826763
If you must use it as a field name, then always surround it with [ ]
characters so that Jet and ACCESS will know it's not the reserved property
that you mean.
Ken,[quoted text clipped - 51 lines]
Bill R
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Export specification Data Types
- From: Ken Snell \(MVP\)
- Re: Export specification Data Types
- References:
- Export specification Data Types
- From: ragtopcaddy via AccessMonster.com
- Re: Export specification Data Types
- From: Ken Snell \(MVP\)
- Re: Export specification Data Types
- From: ragtopcaddy via AccessMonster.com
- Re: Export specification Data Types
- From: Ken Snell \(MVP\)
- Export specification Data Types
- Prev by Date: Re: Query with lookup table
- Next by Date: RE: Ordering Crosstab Query
- Previous by thread: Re: Export specification Data Types
- Next by thread: Re: Export specification Data Types
- Index(es):
Relevant Pages
|