Full Version: Code Issue With Opening Up A Form
UtterAccess Forums > Microsoft® Access > Access Forms
on one of my forms I have a button that sends a report to my default printer.
The code I use for this is:
The problem I have is that if I have made any changes on the form, when I hit the button it prints the report with the old information. the current work around is to change records, forcing it to save, then change back and hit print.
is there a simple line of code I can insert that will save my record before opening the report?
Hi Will,
That version of Access are you using? Knowing the version may help us determine a more appropriate answer.
Try something like:
If Me.Dirty Then Me.Dirty=False
Hope that helps...
Doug Steele
  If Me.Dirty Then Me.Dirty = False
thanks guys... that did the trick!
Hi Will,
Doug and I are happy to help. Good luck with your project.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.