Mimicking Wizards

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
 
A

Allen Browne

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
 
D

dpdeleon

Thanks. To be more specific, I was looking to create subforms at runtime. Do
you know of any way to do that?
 
A

Allen Browne

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.
 

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