Open forms in subform control from switchboard

A

Andi

Does anyone know how to set a subform to populate based on the choice from a
switchboard?

I have created a switchboard as an option list for various medical
conditions but rather than open each "condition" form in a new window, I
would like it to appear on the side of the switchboard as a subform (It would
be prettier that way)

Any sugestions?

Thanks
 
A

Alex Dybenko

Hi,
you can use subform control's SourceObject property to assign selected form
name
 
L

Larry Linson

If you created the Switchboard yourself, with unbound Form(s) and Command
Buttons, what you want to do is not difficult.

If you created it with the Switchboard Manager (IMNSHO, a complex solution
to a simple problem), I can't advise you, because there are interactions
between the Forms and a Table that I never found it worthwhile to explore.

Larry Linson
Microsoft Access MVP
 
A

Andi

I have about 20 different forms I need to appear on the subform at different
times. If the Head button is pressed frmhead would be on the subform, if Back
button is pressed the subform would change to frmBack. Can this be done using
SourceObject property?
 
A

Andi

I have modified a Switchboard Manager switchboard. However, I can easily
creat my own if it would make it possible to create this. What do Ineed to do?
 
A

Alex Dybenko

Yes,
say for Back button click event write a following code:
me.subform1.sourceobject = "frmBack"
 

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