The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.mdb). SYMPTOMSWhen you import a fixed-width file with two Date fields that have different formats, individually you can import them, but if you try to import them together, you may receive the following error message:
CAUSEYou may receive this error message when one Date field has no delimiters and the other Date field is formatted as a standard Date/Time field. Access does not allow you to import a Date field that does not have delimiters together with a Date field that does have delimiters. You must import the non-delimited Date field as Text, and then convert the data to a standard Date format. RESOLUTION
If you want to import a file that contains data formatted in this manner,
you must either edit the fixed-width field to add the slash mark (/)
delimiter or import the field as Text, and then use an update query to
convert the Text to a Date format.
Left$([Mydate],2) & "/" & Mid$([Mydate],3,2) & "/" & Right$([Mydate],2) REFERENCESFor more information about update queries, click Microsoft Access Help on the Help menu, type "change records as a group using an update query" in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about importing, click Microsoft Access Help on the Help menu, type "Importing Data" in the Office Assistant or the Answer Wizard, and then click Search to view the topic. Additional query words: transfertext prb
Keywords : kberrmsg kbdta GnlFilem |
Last Reviewed: May 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |