Hi there,
Is it possible to call Access Report_NoData() procedure
from VB Code?
For example:
I have cmdReport() when I click on this button is there a way to call Report_NoData() procedure from MS Access.
The no data event of the report "invokes itself" when the recordsource of the report doesn't contain any rows.
If you wan't to call a reports on no data event from another event/sub..., it's also possible, but then:
1 - the report must be open
2 - the on no data sub must be declared as public
[tt]Reports!MyReport.ReportNoData (True)[/tt]
or from within the report (then no need for public declaration of the sub)
[tt]ReportNoData (True)[/tt]
- but if the report is alredy open, other events might be better, using the cancel property within the no data, would not "prevent the opening" of the report since it's alredy open...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.