cbo on subform

J

JohnE

I have a situation in which a subform appears when a record is selected from
a listbox on the main form. But, a cbo on the subform does not fill based on
the record selected. The query that is used to fill the cbo does work when
tested as it does return the correct information. What I need is for it to
work when the record is selected from the listbox on the main form. Can
anyone help out regarding this?
Thanks.
John
 
T

tina

try requerying the combobox control on the subform in the mainform listbox
control's AfterUpdate event, as

Me!NameOfSubformInMainForm.Form!NameOfCbo.Requery

hth
 
J

JohnE

tina, thanks. it worked.
john


tina said:
try requerying the combobox control on the subform in the mainform listbox
control's AfterUpdate event, as

Me!NameOfSubformInMainForm.Form!NameOfCbo.Requery

hth
 

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