We are upgrading one of our servers, and when i simply copied the entire Access database (that has worked for years with no issues) to the new server, i get an erorr when trying to print:
Run-time error '3021': No Current Record
I have some code in place that runs a query to get the variable intCountOfPackSlips. Then, if that count is > 0, I print a pack slip.
In the example i'm testing with (again, works perfectly fine on other server), the Coun to Pack slips is 1. Here is the relevenat code that is erroring out:
The actual error code is DoCmd.PrintOut acPrintAll, , , , intCountOfPackSlips.
When i review the report itself, it has data and i can print manually.
What could cause this issue / what other information is needed?
Run-time error '3021': No Current Record
I have some code in place that runs a query to get the variable intCountOfPackSlips. Then, if that count is > 0, I print a pack slip.
In the example i'm testing with (again, works perfectly fine on other server), the Coun to Pack slips is 1. Here is the relevenat code that is erroring out:
Code:
If intCountOfPackSlips > 0 Then
DoCmd.SelectObject acReport, "PACKING SLIP-A", True
DoCmd.PrintOut acPrintAll, , , , intCountOfPackSlips
End If
The actual error code is DoCmd.PrintOut acPrintAll, , , , intCountOfPackSlips.
When i review the report itself, it has data and i can print manually.
What could cause this issue / what other information is needed?