create and edit txt file (1 Viewer)

Nishikawa

Registered User.
Local time
Today, 09:50
Joined
May 17, 2007
Messages
97
Hi,

Can anyone teach me how to create and edit a text file usinb vba?
I am unable to be use:
DoCmd.TransferText acImportDelim, , "tableName", "c:\test.txt"
as I am not apeending an entire table.
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 02:50
Joined
Jan 20, 2009
Messages
12,863
Use a query to extract the data you want and transfer that to the text file.
The same command except "tablename" becomes "queryname".
 

ajetrumpet

Banned
Local time
Today, 11:50
Joined
Jun 22, 2007
Messages
5,638
Can anyone teach me how to create and edit a text file usinb vba?
here is one thing you can do that transfers textbox typings into the text file. you have to open the file for input/output to transfer text in and out of it, just like a stream object is used.
 

Attachments

  • create a text file.zip
    24.3 KB · Views: 108

Users who are viewing this thread

Top Bottom