Sitchboard coding

  • Thread starter Thread starter JenK
  • Start date Start date
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?
 
Jen,

No, you can open the main form using an OpenForm action, and then the
subform will automatically be shown on the main form.
 
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?
 
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.
 
Back
Top