Making a macro save a record

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro where I print a report of the form I am entering on. I
created a button for the macro. When I press the button it comes up blank
because the information is not saved as I am entering it. I am trying to
make it so rather than clicking on save record, the macro will save it
automatically before it prints. Is there a way to do that? I was browsing
help and saw the "sendkeys" function, but some people have said to stay away
from that. Any suggestions?
 
Mark,

Add a RunCommand action at the beginning of your macro, with command
argument SaveRecord. That should save the record before you print the
report.

And, yes, stay away from SendKeys at any cost! Whatever you may try to do
with it, there is alwasy a better way. SendKeys is notorious for doing
anything but what it was intended to do.

HTH,
Nikos
 
Back
Top