My mistake, I did not explain good enough - sorry.
Yes, I know I can open a form with a command button.
So, I have a main form with customer details - than I need for our business
three more forms to create an offer. 1st form for a cemetery offer, 2nd form
for a normal gardening offer and the 3rd form for a normal plants offer.
The layout would be much nicer if I use three command buttons which are
opening the specific forms in the main form (like a subform).
If that is not possible than I have to create three seperate forms and use
your 1st idea for the main form.
My question was if it is possible, and how it is possible, to open with a
command button, instead of a seperate form a subform in the main form.
Thanks
Klaus
Ofer Cohen said:
What do you mean by openning a sub form?
You can make it visible, if it's already linked to the main form
Me.[SubFormControlName].Visible = True
Or, open it as a seperate form
Docmd.OpenForm "SubFormName"
--
Good Luck
BS"D
:
Following your answer I have another question.
Is it than as well possible to open a subform in the main form with a
command of a command button?
If yes, can you as well tell me how?
Thanks
Klaus
:
On the form LoadEvent you can use this code
Me.[SubFormControlName].Visible =
(Me.[SubFormControlName].Form.RecordSetClone.RecordCount > 0)
--
Good Luck
BS"D
:
I have a form where I would like to integrate subforms. (OK, no problem)
I would like that, if I have i.e. subforms, 1,2 and 3, only that subform is
shown where as well data is in. Empty subforms I don’t want to see.
Is that possible and if yes, how?
Thanks
Klaus