G
Guest
This code works on my local network but when I take it to another company, it
worked once. Now it give the runtime error 2212. If I take it to a third
network, I still get the error. Here is the code:
Dim strDetailCriteria As String
Dim strDefaultPrinter As String
strDefaultPrinter = Application.Printer.DeviceName
Set Application.Printer = Application.Printers(strDefaultPrinter)
strDetailCriteria = "[MaID]=" & Chr(34) & Me.txtMaID & Chr(34) & " AND
[ORN]=" & Chr(34) & Me.txtORN & Chr(34)
DoCmd.OpenReport "rptMA_ContractMaster", acViewNormal, ,
strDetailCriteria
Does anyone know what a 2212 error is or what might be the cause?
Thanks for any help!
worked once. Now it give the runtime error 2212. If I take it to a third
network, I still get the error. Here is the code:
Dim strDetailCriteria As String
Dim strDefaultPrinter As String
strDefaultPrinter = Application.Printer.DeviceName
Set Application.Printer = Application.Printers(strDefaultPrinter)
strDetailCriteria = "[MaID]=" & Chr(34) & Me.txtMaID & Chr(34) & " AND
[ORN]=" & Chr(34) & Me.txtORN & Chr(34)
DoCmd.OpenReport "rptMA_ContractMaster", acViewNormal, ,
strDetailCriteria
Does anyone know what a 2212 error is or what might be the cause?
Thanks for any help!