I have a button that calls a report-that button has 2 subs.
I want on the onclose of the report-to call the the secondsub-"printReport" but when I call that function I'm getting
"compile error sub or function not defined"
I'm sure that if I put that sub in a regular module it will be no problem-but how do I keep in the button code.
the sub is public-not private
I'm using access 97
thank you
I want on the onclose of the report-to call the the secondsub-"printReport" but when I call that function I'm getting
"compile error sub or function not defined"
I'm sure that if I put that sub in a regular module it will be no problem-but how do I keep in the button code.
the sub is public-not private
I'm using access 97
thank you