I've created a button on a form that calls this procedure. How do I update the procedure to open the query in Excel xlsx instead of MS Access datasheet view?
Private Sub RunMonthlyReportBtn_Click()
DoCmd.OpenQuery "qryMonthlyReport", acViewNormal, acReadOnly
End Sub
Private Sub RunMonthlyReportBtn_Click()
DoCmd.OpenQuery "qryMonthlyReport", acViewNormal, acReadOnly
End Sub