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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export To File...Number Fields need leading zeroes

Status
Not open for further replies.

rshendrix

MIS
Mar 5, 2002
134
0
0
I am trying to create a simple data entry routine by creating one table with 9 fields. After data entry I want the user to be able to Export the data to a .txt file. Two fields are numeric and when exporting they are not zero-filled or right-justified in the .txt file.

Any suggestions on how I can make this work?
 
You could export a query based on the table. Convert the numbers to text using the Format() function like:
TextNumField: Format([NumberField],"0000")

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top