Hello All.
I created a view in SQL that can be viewed in Access ADP.
I want to email this view.
I have a simple docmd line that should work, but the error I get is below. The strange thing is that Access is adding a one to Query name. I tried assigning it to a variable and I get the same thing. Below is the screen shot of the error and code I am typing in the immediate window to test.
docmd.SendObject acSendQuery ,"CurtisDrayageInvoiceEmail", acFormatXLSX,"test@email.com"
I created a view in SQL that can be viewed in Access ADP.
I want to email this view.
I have a simple docmd line that should work, but the error I get is below. The strange thing is that Access is adding a one to Query name. I tried assigning it to a variable and I get the same thing. Below is the screen shot of the error and code I am typing in the immediate window to test.
docmd.SendObject acSendQuery ,"CurtisDrayageInvoiceEmail", acFormatXLSX,"test@email.com"