Hi All,
I have one Print button on form in that I have following code,
DoCmd.OpenReport RepMainData, acViewNormal
In Report open method I have code to get data from database and populate into reports fields.
Now I’m getting following error while pressing Print button,
2501 – The OpenReport action was canceled.
I checked there are data to print in report. Report is not empty.
Can anyone please tell me what this error means? And what is solution for that?
Thanks in Advance,
Raccess
I have one Print button on form in that I have following code,
DoCmd.OpenReport RepMainData, acViewNormal
In Report open method I have code to get data from database and populate into reports fields.
Now I’m getting following error while pressing Print button,
2501 – The OpenReport action was canceled.
I checked there are data to print in report. Report is not empty.
Can anyone please tell me what this error means? And what is solution for that?
Thanks in Advance,
Raccess