Wizard: Multiple forms or hiden controls?

  • Thread starter Thread starter Fred Wilson
  • Start date Start date
F

Fred Wilson

Hello All,

When one designs a wizard, is it a series of multiple forms or is one
form with hidden controls that are turned on an off?

Thanks,
Fred
 
The Access wizards use multiple forms displayed in a subform control.
As you move from next to next it validates and then loads the next sub form
into the control.

hth

peter walker mvp
 
An alternative approach to a series of subforms (if you are building your
own Wizard) is to use a tab control, with each page of the wizard on a
separate tab page. Turn off display of the tab names (Format- Style -
None), and have the next/previous buttons change the tab page.

Rob
 
peter said:
The Access wizards use multiple forms displayed in a subform control.
As you move from next to next it validates and then loads the next sub form
into the control.

hth

peter walker mvp
Well I must be doing something wrong here although I have been somewhat
successful trying your idea.

What I have is a search wizard but for each successive selection a
different form needs to be loaded. I am putting the code on the cmdNext
on click action.

Here is the theme, the first form has let's say 5 departments on it. In
the code on the cmdNext_Click() I test the selection in the list box on
the sfrmDepartments. It then load the next appropriate sfrm in the
sfrmctrWizardSearch.SourceObject however, I do not know how to test what
has been selected on this form or any succeeding form.

Any Ideas?
 
Here is a link to one of my stripped down wizards.
http://www.papwalker.com.au/public/wiz.zip

It uses advanced access techniques so study it carefully, don't rush.
It uses events.
The wizbtns form is used like a control on the main carrier form. It uses
event to drive the carrier.
The carrier uses events to 'talk' to the seperate pannels.
The forms are quite self sufficient and in this model thay all stay loaded,
the visibility is toggled.


The panels recieve
BeforeShow
AfterShow
DeletedData
OnHide
QueryData
and Validate events
from the carrier.

The wizbtns form is universal and I would normally replace it with a custom
control but you can plonk it on any form - set the reference and you have
the basis for a wizard.


hth

peter walker mvp
 
Back
Top