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

Format field in query to export to fixed field text file.

Status
Not open for further replies.

cav

MIS
Feb 3, 2000
49
US
I need to export field a phone field from a query as fixed field text file. How do I make it a 12 character phone field that will export with the format 999 999-9999. Even though it shows up fine in the query, even if I put a mask on it and say to store with space and dash, it reverts in the export to 10 digits removing the space and dash. Is there a way to do this without programming such as through the format property?
I appreciate any help...IMMEDIATELY. Thanks.
 
Hi!
Try

"Expression: mid([yourphoneno],1,3)&" "& mid([yourphoneno],4,3) & "-" & mid([yourphoneno],7,4)"

in the "Field"-field in your query.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top