N
Natalie
Hi - I have a subform with a combo box in it - I need to
be able to add values to this box if they aren't in the
list - i use the OnNotinList property to open my list of
supporters and add a new name - but then I am trying to
set the OnClose property of this form (the one with the
names in) so that it requerys the control on my subform
(called supporter) and the new value appears in the list -
I have used a similar code to the one below in another
place on my main form and it has worked fine but it says
it can't find the subform I am referrencing - can anyone
help?
Dim supporters As Control
Set supporters = Forms!Supportheadersubform!Supporter
supporters.Requery
supporters.SetFocus
Thanks!
be able to add values to this box if they aren't in the
list - i use the OnNotinList property to open my list of
supporters and add a new name - but then I am trying to
set the OnClose property of this form (the one with the
names in) so that it requerys the control on my subform
(called supporter) and the new value appears in the list -
I have used a similar code to the one below in another
place on my main form and it has worked fine but it says
it can't find the subform I am referrencing - can anyone
help?
Dim supporters As Control
Set supporters = Forms!Supportheadersubform!Supporter
supporters.Requery
supporters.SetFocus
Thanks!