|
-
Mar 30th, 2006, 09:25 AM
#1
Thread Starter
Lively Member
Printing problem with accesss and VBA
Hopefully someone could help me. I have a problem when I try to print a report in access.
VB Code:
DoCmd.OpenReport "Shift_Totals", acViewNormal
Sometimes it works and others it doesn't saying runtime rror 2486 "you can't carry out this action at the present time'.
Is there any other way to print? I need this to work each and everytime... also, I need to check to see if it printed and no errors occured such as no paper in the printer...
I would like to add the min and max dates to be printed on this report... I have the code working that searches and displays them in a message box but now I want to have that info printed on the report.
-
Mar 30th, 2006, 10:40 AM
#2
Re: Printing problem with accesss and VBA
Have you been able to determine under what circumstances it works and under what circumstances it doesn't?
-
Mar 30th, 2006, 10:53 AM
#3
Thread Starter
Lively Member
Re: Printing problem with accesss and VBA
To this time I havn't been able to. It seems if I comment that line out the rest of the code runs error free, so it seems to be just that line. The really strange part is that it works ad then it doesn't but seems totally random.
-
Mar 30th, 2006, 10:54 AM
#4
Re: Printing problem with accesss and VBA
What about other reports? Do they print fine? Is it just this one?
-
Mar 30th, 2006, 11:04 AM
#5
Thread Starter
Lively Member
Re: Printing problem with accesss and VBA
This is the only report that I am printing and the only one I have. Is there a different way to print?
-
Mar 31st, 2006, 10:32 AM
#6
Thread Starter
Lively Member
Re: Printing problem with accesss and VBA
anyone else ever have this problem or knows how to solve it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|