I'm new to access and I need to know if anyone as information on how to export hard coded query to excel.
Here's the query i'm trying to export to excel. I think I might need to covert it to a recordset?
If anyone has information i could read on the property i'm suppose to use let me know! :D
whereAtt = "Select * from tblActionLog where LogID is not null"
Can you save your hard coded query as an Access Query? If so, you can just make a button that when clicked runs this code:
DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatXLS, , True
Would be a lot easier than the other solution.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.