Report Prints w/o OnActivate Event Code

  • Thread starter Rafael Fuenzalida via AccessMonster.com
  • Start date
R

Rafael Fuenzalida via AccessMonster.com

I have several textboxes (On a report) who's visible property I set to False with code behind the OnActivate Event... When I print this report via the DoCmd.OpenReport method, all of the textboxes are visible (<--- not desired). When I open the report in Preview the textboxes are not visible as dictated by the code(<--- desired)... Why is the code ignored when I print the report????

Thanks in advance,
 
F

fredg

I have several textboxes (On a report) who's visible property I
set to False with code behind the OnActivate Event... When I
print this report via the DoCmd.OpenReport method, all of the
textboxes are visible (<--- not desired). When I open the
report in Preview the textboxes are not visible as dictated
by the code(<--- desired)... Why is the code ignored
when I print the report????

Thanks in advance,

That's because, by design, the Activate event only fires during
Preview, not Print.
Place your code in the report's Report Header Format event.
 

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