Mimicking Wizards

  • Thread starter Thread starter dpdeleon
  • Start date Start date
D

dpdeleon

I'd like to insert a subreport at runtime into a main report. Is there a way
to do this by mimicking / invoking the wizard or some other method?

Thanks
 
Unless you are planning to use an MDE or runtime version of Access, you can
OpenReport in design view, and create a subreport on the fly if you wish to
write the software do so.

To get started, open the Immediate window, enter CreateControl, and press
F1.

You can also download the Wizard code for Access 97 and learn how they work
in these links:
http://www.microsoft.com/downloads/...0d-9e37-40de-97b1-8bc4edbb0def&DisplayLang=en
http://www.microsoft.com/downloads/...c9-cf28-408a-b782-61e6b830a20e&DisplayLang=en
 
Thanks. To be more specific, I was looking to create subforms at runtime. Do
you know of any way to do that?
 
I'm not going to do it for you.

CreateControl() is capable of creating a subform control, which is what you
asked for, and I explained how to get to the Help topic, and see the
example. Along with CreateForm() this will get you the basics.
 
Back
Top