0

How can I display the outout of a query in a notepad on button click in access?

I have a button "View Query Output" in access. I want to be able to display the ouput in a notepad file. How can I do this?

Thanks in advance

1 Answer 1

2

You can use DoCmd.TransferText to save the output to a textfile and FollowHyperlink to open the file.

Sign up to request clarification or add additional context in comments.

1 Comment

Would you happen to know why using the following command deletes my file: TestFile.txt? Dim Test_File as string Test_File = "C:\Users\Documents\TestFile.txt" DoCmd.TransferText acExportFixed, "Test_Specification", "Test_View", Test_File

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.