swapping subreports on mainform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a main form with a subform.

When a user chooses a option on the main form I would like
to replace the current subreport's form with another form.

Is there a way to do this?

Thanks

Chris
 
Chris,
You could hide both forms using the Iinvisible property, and
show/notshow according to some event or criteria.
OR...
In the old Access2 days I would set a subform Height = 0 and Width = 0,
while at the same time "opening" up another subform via Width = 1000 and
Height = 1000, and then alternate those actions as needed.
And, even though one subform can not be seen at, you can still address
the subform and controls and values programatically.
OR...
You could use a Tab Control. Each Tab "Page" can hold a different
subform, and makes organizing large amounts of data and controls. But,
perhaps you don't want both subs available at all times....

hth
Al Camp
 
Thanks for reply Al,

Yes, using the invisible property was plan B, if plan A did'nt pan out.
 
Back
Top