Memo data type to text file.

T

Tim Ferguson

How can I send the content of a memo data type to a text file using vb.

' get an outbound stream
wFileOut = FreeFile()

' open it
Open "d:\mydata.txt" For Output As wFileOut

' write the memo field
Print #wFileOut, rs.Fields("MyMemoField").Value

' close the file
Close #wFileOut

' all done: now get another record or something.


You can look up Open, Close, Print #, etc statements in help. The syntax
for Open is pretty critical.

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top