Making a macro save a record

M

Mark

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?
 
N

Nikos Yannacopoulos

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top