How to show no info on Subform until Main form selection.

J

Jack

I have a main form with a subform that is linked using the child & master
fields.
The main form has a pulldown wich selects a persons name and then the
subform is updated with related info. This is working fine. However,
currently when the main form is opened it is automatically on the first
record even thought the pulldown is still blank(no selection). Therefore the
subform has related info showing for the first record.
My question is, how do I not show any info in the subform until a selection
is made via the Main form pulldown.

Thank you
 
G

Guest

It sounds like the main form is bound to a table and the combo box to a field
in the table. I think you could unbind the combobox and remove the
Master/Child binding to the subform. In the combo's AfterUpdate event, set
the subform's record with something like:
Me.sfrmMySubform!Form.IdField = Me.cboPersonsName

The idea is to have the combobox only be responsible for updating the
subform's record.

HTH,
Barry
 

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