PRB: Jet Text IISAM Truncates Trailing Spaces (182355)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic for Applications 5.0
- Microsoft Access 97
This article was previously published under Q182355 SYMPTOMS
When importing delimited data from a text file into a Jet database,
trailing spaces are dropped from fields.
CAUSE
The Text IISAM driver truncates trailing spaces regardless of whether the
field is surrounded by quotes.
RESOLUTION- Write a custom import routine using low-level file I/O and DAO, and
parse the line into fields using BASIC.
-or-
- When creating the text file, use a substitute character for trailing
spaces you do not want truncated and then use a SQL statement to "fix"
the imported data.
STATUS
This behavior is by design.
REFERENCES
Visual Basic and Access help topic: IN CLAUSE
(c) Microsoft Corporation 1998, All Rights Reserved.
Contributions by Malcolm Stewart, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 9/23/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbprb KB182355 |
---|
|