DoCmd.RunCommand was cancelled

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

Guest

I want to open a report with this code:
DoCmd.RunCommand acCmdSaveAllRecords but it pops up an error saying
that,"RunCommand was cancalled". Do you know why?
 
Tim:

Have you tried opening the report with the Docmd.OpenReport method?

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I want to open a report with this code:
DoCmd.RunCommand acCmdSaveAllRecords but it pops up an error saying
that,"RunCommand was cancalled". Do you know why?
 
Hi David,
Yes, I tried opening it with DoCmd.OpenReport, but data does not show up on
the report. That's why I tried DoCmd.RunCommand acCmdSaveAllRecords to force
Access to save the records before sending to the report. I was hoping that
was the way for data show up on the report but it did not.
Do you have any idea about it?? Thank you for your help.
tim
 
Back
Top