Sitchboard coding

J

JenK

I am looking for coding that will allow me to open my forms from switchboard
as a subform on the report instead of as a seperate form. Is this possible
and if so what would the coding be/ look like?
 
S

Steve Schapel

Jen,

No, you can open the main form using an OpenForm action, and then the
subform will automatically be shown on the main form.
 
J

JenK

I realize I made a mistake in my question.
I am trying to open a form as a suform on my switchboard form. I am
currently have an OpenForm action but it opens the form as it's own seperate
form rather than a subform. How do I get it to open as a subform? Am I
missing something in the OpenForm action codes?
 
S

Steve Schapel

Jen,

A subform is not a form. It is a control on the main form, which
provides a view of the form contained within it, but the form contained
within it is never "open", so the OpenForm macro is not applicable.
Instead, what you could do is hide the subform (set its Visible property
to No) by default, and then have your macro use a SetValue action to set
its Visible property to Yes instead.
 

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