Hi
Code:IF(DoCmd.OpenReport "User_Details", acViewNormal) Then MsgBox "Report Printed Successfully" Else MsgBox "Report Not Printed"
is this above code correct? if not what changes to be done?
Hi
Code:IF(DoCmd.OpenReport "User_Details", acViewNormal) Then MsgBox "Report Printed Successfully" Else MsgBox "Report Not Printed"
is this above code correct? if not what changes to be done?
If a report won't print you'll get an error, use this to tell your user there was a problem.
It won't tell you it has printed correctly as far as I'm aware.
There is a discussion here that might help https://access-programmers.co.uk/for...d.php?t=204812
DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
Please use the star below the post to say thanks if we have helped !
↓↓ It's down here ↓↓
Hey Minty
Awesome, that worked. Thanks alot mate.