A family of Microsoft relational database management systems designed for ease of use.
Dim intFile As Integer
intFile = FreeFile()
Open "C:\mystuff\AccessOutput.txt" For Output As #intFile
Print #intFile, Text2Export
Close #intFile
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would like to have Access VBA create a file called "c:\mystuff\AccessOutput.txt" using the ready-to-go text in the string variable called "Text2Export".
Of course, if there is already a file with that name, I'd like this file to replace the old one.
This is just text going into a plain ASCII "txt" file.
How is that done?
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Dim intFile As Integer
intFile = FreeFile()
Open "C:\mystuff\AccessOutput.txt" For Output As #intFile
Print #intFile, Text2Export
Close #intFile