pungentSapling
NeedHotSauce?
- Local time
- Today, 07:20
- Joined
- Apr 4, 2002
- Messages
- 116
I need to preserve leading zeros in a field when I export a table to txt.
The "hours" field needs to contain 5 digits for example 40 hours should look like 04000. I am using a query for the export, the dynaset for the query contains the right amount of zeros but when the export is performed I lose the leading zeros.
I searched the forum and found what I thought was the fix
Select Format(Date,"00000") as Date1
but I can not seem to get it to work.
any help would be greatly appreciated.
I know I have (sort of) posted this question twice, the other time I accidently used Quote and it ended up appending my question to the thread I was trying to quote from......Sorry
The "hours" field needs to contain 5 digits for example 40 hours should look like 04000. I am using a query for the export, the dynaset for the query contains the right amount of zeros but when the export is performed I lose the leading zeros.
I searched the forum and found what I thought was the fix
Select Format(Date,"00000") as Date1
but I can not seem to get it to work.
any help would be greatly appreciated.
I know I have (sort of) posted this question twice, the other time I accidently used Quote and it ended up appending my question to the thread I was trying to quote from......Sorry
Last edited: