techkenny1
Technical User
Hi,
I have a requirement to export an access query to the desktop where MYOB can link via software.
I have created a command button on a form with this code
How can I change this code to export this query to the desktop.
Many thanks,
kp
I have a requirement to export an access query to the desktop where MYOB can link via software.
I have created a command button on a form with this code
Code:
Private Sub PostInvoices_Click()
On Error GoTo Err_PostInvoices_Click
Dim stDocName As String
stDocName = "QSendInvoices"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_PostInvoices_Click:
Exit Sub
Err_PostInvoices_Click:
MsgBox Err.Description
Resume Exit_PostInvoices_Click
End Sub
Many thanks,
kp