S
StargateFanNotAtHome
I found DoCmd.Close works as promised via some posts I googled to, but
it did say we should be specific.
I found this code for that:
DoCmd.Close acReport, "Report_Index", acSaveNo
This is just one of the trials I did. The above is wrong because it
doesn't close and, actually nothing seems to happen. I don't even get
an error code. But DoCmd.Close works just fine.
However, there were warnings about this failing sometimes and I agree
with the posts that I read that I'd rather specify which item to
close, no matter that it is pretty straightforward.
I labelled the report "Index" whereas in the vbe, it shows as
"Report_Index". But neither work. What am I doing wrong, pls?
Well, that's it. Three things out of all the many things I googled
for that I couldn't figure out on my own (hence my 3 posts today).
Thanks everyone! D
it did say we should be specific.
I found this code for that:
DoCmd.Close acReport, "Report_Index", acSaveNo
This is just one of the trials I did. The above is wrong because it
doesn't close and, actually nothing seems to happen. I don't even get
an error code. But DoCmd.Close works just fine.
However, there were warnings about this failing sometimes and I agree
with the posts that I read that I'd rather specify which item to
close, no matter that it is pretty straightforward.
I labelled the report "Index" whereas in the vbe, it shows as
"Report_Index". But neither work. What am I doing wrong, pls?
Well, that's it. Three things out of all the many things I googled
for that I couldn't figure out on my own (hence my 3 posts today).
Thanks everyone! D