madty
01-05-2005, 09:05 AM
Hello,
I am trying to create a button that would fax my order to my supplyer. Here is my code:
Dim stDocName As String
Dim FaxN As String
FaxN = Me.VENDFX
stDocName = "POFax"
DoCmd.SendObject acSendReport, stDocName, acFormatRTF, _
"[fax: " & FaxN & "]", , , , , False
When I use this code it trys to send my report by e-mail. How do I get it to fax via Microsoft fax?
Pat Hartman
01-05-2005, 09:33 PM
When you want to Fax something, don't you just print the report to the fax? I would use the OpenReport method. Be sure to set the arguments properly so the report goes directly to the "priner" rather than preview.
madty
01-06-2005, 06:23 AM
I have set the default printer to be the fax, but I keep getting the fax wizzard and I have to fill in all the information by hand. I want access to look at the suppliers fax number and place the fax without having to enter then information by hand every time.
Pat Hartman
01-06-2005, 01:44 PM
Apparently SendObject is the method to use. See if this article from the kb clears up the problem: How to fax from Access by using the SendObject command in Access 2002 (http://support.microsoft.com/default.aspx?scid=kb;en-us;299016)
madty
01-06-2005, 02:18 PM
Thanks,
I found out what the problem is. The code was correct but I need to set up an account in Outlook that would send faxs. Here is the link on how to set it up. http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/fxsclnt/FaxC_H_NodeEmail.asp
Once the Email accout is set up to fax the send object method work just fine.
Thanks everyone for thier input.
Pat Hartman
01-06-2005, 06:12 PM
Thanks for reporting back.