"D.M" <no****@hotmail.com> wrote in news:bs**********@ariane.blic.net:
Hello,
Do you know what is the best way to call VB modules from reports.
Thanks in advance.
Reports are strange animals and where to call procedures may depend on what
the procedure is going to do. One of the more effective ways seems to be to
put the call in the event code of the report or one of its sections. If the
code is to impact the report's recordsource or filter, it may be useful to
set the appropriate property of the report to a call to the procedure, eg:
InputParamaters = GetThisReportsInputParameters()
In ACXP (and greater one assumes) one can set the report's recordset to an
ADO recordset and do some interesting things in the section onformat events,
but this doesn't seem to be documented and it requires some trial and error
work.
--
Lyle
(for e-mail refer to
http://ffdba.com/contacts.htm)