I have four Access queries that I have to routinely open in Access then open the tools analyze with MS Excel, and then save as CSV file. Is there an easy way to go from an Access Query to creating a CSV file using VB?
You can prompt for a file name
Dim strFileName as String
strFileName = InputBox("Enter a file name"
DoCmd.TransferText acExportDelim, , "qselEmployees", strFileName, True
All fields in your query will be exported. For a much more flexible solution check out the QBF in the Corp Tech Demos at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.