Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2004, 04:47 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Too True!! You probably know this already, but in the process of trying to find more information online, I stumbled across a list of predefined formats on the MSDN site, including "Scientific" incase you ever want to convert the number back, but there wasn't one that put it is standard format without round it off to 2 decimal places.

We'll have to do this again sometime!

Mike

Mike
EchoVue.com
 
Old November 23rd, 2004, 05:06 PM
Authorized User
 
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Mike,

I don't suppose you could post the URL for that list of predefined formats - it may be useful sometime!

Thanks

Andrew
 
Old November 23rd, 2004, 05:29 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

http://msdn.microsoft.com/library/de.../D6/S5B22A.asp

The url above will get you to the Format Function page, which doesn't tell you much, but there is a navigation bar on the left that has links to more specialized topics. I found the number formats under Format Function Name Numeric Formats, but there are several others that are worth taking note of for future use.

Mike

Mike
EchoVue.com
 
Old November 23rd, 2004, 07:33 PM
Authorized User
 
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mike,

that's great thanks very much

best wishes

Andrew

 
Old November 24th, 2004, 07:44 AM
Authorized User
 
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mike,

the saga went on, using write # puts quotation marks around everything so I used Print #. Unfortunately, Print # puts spaces rather than tabs between the data. Wound up creating a temporary string variable and concatenating variables and tab characters (chr(9)) into this and then using Print #


Dim Var As String
Open "MyTxtFile.txt" For Output As #1 ' Open file for output.
.
.
Var = MyVar1 & chr(9) & MyVar2 & chr(9) & etc..
Print #1, Var

etc..

Andrew








Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS text file export - Batch Process Tim Barbour SQL Server DTS 1 November 23rd, 2004 11:50 AM
Export CR report to TEXT using dotnet polin2358 Crystal Reports 0 October 8th, 2004 12:59 PM
Export a file Discoverer Report to a .pdf file alozano Oracle 0 May 6th, 2004 10:42 AM
Insert data in a text file and export them cutovoi Excel VBA 3 January 23rd, 2004 07:31 AM
Export Text problem Steven Access 1 July 7th, 2003 03:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.