ComboBox output depends on another won't work

  • Thread starter Thread starter ArkBob
  • Start date Start date
A

ArkBob

I have a cbo pulling primary listing and then another cbo pulling info based
on the first cbo. I works the first time correctly but if I change the
selection in the first cbo the inform displayed in the second cbo does not
change. How do I force the second cbo to re-query based on the changed input
from the first?

Thanks
 
on the AfterUpdate event of the first combo:

'~~~~~~~~~~
me.combo2_controlname.Requery
me.combo2_controlname = null
'~~~~~~~~~~

the reason you want to clear the second combo is because if it has a
value that doesn't match the new criteria, it will not show and the user
will not realize it is filled out!

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

*
(: have an awesome day :)
*
 
Thank you very much! Worked great.

strive4peace said:
on the AfterUpdate event of the first combo:

'~~~~~~~~~~
me.combo2_controlname.Requery
me.combo2_controlname = null
'~~~~~~~~~~

the reason you want to clear the second combo is because if it has a
value that doesn't match the new criteria, it will not show and the user
will not realize it is filled out!

Warm Regards,
Crystal

remote programming and training

Access Basics
8-part free tutorial that covers essentials in Access
http://www.AccessMVP.com/strive4peace

*
(: have an awesome day :)
*
 

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

Back
Top