J
Jacinda
Why doesn't this work anymore?
Function FaxInvoices()
Dim dbsallinonenew As DAO.Database
Dim rstCustomers As DAO.Recordset
Set dbsallinonenew = currentdb()
Set rstCustomers = dbsallinonenew.OpenRecordset("Qackopen ", _
dbOpenDynaset)
If MsgBox("Do you want to fax Acknowledgments?" & Chr(13) & _
"to all customers using Microsoft Fax?", 4) = 6 Then
With rstCustomers
Do Until .EOF
'Create the report Filter
'used by the Report_Open event.
strWhereack = "[ID_cust_soldto]= '" & ![ID_CUST_SOLDTO] & "'"
DoCmd.SendObject acReport, "racktoday", acFormatSNP, _
"[FAX:" & ![PHONE_FAX] & "]", , , , , , False
.MoveNext
Loop
End With
End If
rstCustomers.close
End Function
I checked my refrences, that does not seem to be the problem...
Function FaxInvoices()
Dim dbsallinonenew As DAO.Database
Dim rstCustomers As DAO.Recordset
Set dbsallinonenew = currentdb()
Set rstCustomers = dbsallinonenew.OpenRecordset("Qackopen ", _
dbOpenDynaset)
If MsgBox("Do you want to fax Acknowledgments?" & Chr(13) & _
"to all customers using Microsoft Fax?", 4) = 6 Then
With rstCustomers
Do Until .EOF
'Create the report Filter
'used by the Report_Open event.
strWhereack = "[ID_cust_soldto]= '" & ![ID_CUST_SOLDTO] & "'"
DoCmd.SendObject acReport, "racktoday", acFormatSNP, _
"[FAX:" & ![PHONE_FAX] & "]", , , , , , False
.MoveNext
Loop
End With
End If
rstCustomers.close
End Function
I checked my refrences, that does not seem to be the problem...