G
Guest
I have a form with with a subform.
form1 has client information with client name as the master field
form2 has invoice information related to the client. client name being the
child field
I have a combo box on form 2 to lookup invoices. I only want to lookup
invoices related to the current client chosen.
In my combo box I filter the lookup to the control listing the client name
[clientname].
This works the first time I use the combo box. Each time thereafter when I
change the client name the combo box still only returns invoices for the
first client I chose. It does not see the update to the [clientname].
I have to set the onenter property of the combo box to requery the
[clientname] control, I have also tried to set it to Docmd.requery in the
code window to requery to whole database.
Nothing has worked I can only use this combo box once.
What is the correct way to get this to work?
form1 has client information with client name as the master field
form2 has invoice information related to the client. client name being the
child field
I have a combo box on form 2 to lookup invoices. I only want to lookup
invoices related to the current client chosen.
In my combo box I filter the lookup to the control listing the client name
[clientname].
This works the first time I use the combo box. Each time thereafter when I
change the client name the combo box still only returns invoices for the
first client I chose. It does not see the update to the [clientname].
I have to set the onenter property of the combo box to requery the
[clientname] control, I have also tried to set it to Docmd.requery in the
code window to requery to whole database.
Nothing has worked I can only use this combo box once.
What is the correct way to get this to work?