Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping preceeding zeros in text field

Status
Not open for further replies.

barra47

Programmer
Dec 25, 2002
86
AU
I am importing data from a comma delimited text file
the supplier invoice number is a text field.
I am using Transfer text in a macro to do this
some of the invoice numbers are e.g. 0008744, 08899, ab234 etc.
when it is imported into the database table , into a text field it drops the zero's e.g. 0008744 becomes 8744
how can I stop this as it is important to keep the zero's


Thanks in advance
 
Yes iam
within a macro : Transfer Text

Transfer Type: Import delimitted
Table name : ReconDetail
File name: C:/Txt File/ReconDetail.txt
Has field names : No

 
Yes iam
No, you don't.
Remou talked about the Format parameter of this action.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sorry I misunderstood the question
Im just using the macro as explained. I am open to suggestion.
 
Do you know what Import Specification means ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sorry
I do not know what Import specification means
 
So, read the About import/export specifications and schema.ini files. paragraph in the link provided by Remou.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you both for your time
I just worked out if I run get data it brings in the text as is without removing the preceeding zero's

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top