Taff
Registered User.
- Local time
- Today, 04:58
- Joined
- Feb 3, 2004
- Messages
- 158
Has anyone come across the following?
I have a table with several date fields. Next I have a query where I format the date fields so they can be exported in the correct format. I do this in my query as follows:-
Date1: Format ([DATEBRTH],"ddmmyyyy")
Date2: Format ([DATESTRT],"ddmmyyyy")
When I export the file, I save it as a Fixed Width text file. This text file is then sent off were some changes may be made. The problem I am having is trying to import the text file.
The date fields in my table are dd/mm/yyyy and the format of them in my text file are ddmmyyyy so when I try to import them back into my table, I get errors and the entire date rows are lost.
So what I think I need to do is somehow format the date fields from the text file before they reach the table.
Is there anyway to do this?
Thanks for any help.
Ant.
I have a table with several date fields. Next I have a query where I format the date fields so they can be exported in the correct format. I do this in my query as follows:-
Date1: Format ([DATEBRTH],"ddmmyyyy")
Date2: Format ([DATESTRT],"ddmmyyyy")
When I export the file, I save it as a Fixed Width text file. This text file is then sent off were some changes may be made. The problem I am having is trying to import the text file.
The date fields in my table are dd/mm/yyyy and the format of them in my text file are ddmmyyyy so when I try to import them back into my table, I get errors and the entire date rows are lost.
So what I think I need to do is somehow format the date fields from the text file before they reach the table.
Is there anyway to do this?
Thanks for any help.
Ant.