code for combo box

  • Thread starter Thread starter Arain
  • Start date Start date
A

Arain

I have this combo box which has classid from the classid table. And then I
have a subform with classid, menu and module. I want the subform to change
based on the selection of the combo box. I have tried requery, refresh etc.
can someone tell me what and where to write the code for the combo box to
change the subform.

Thanks
 
In the query connected to your form, and on the field that you want to use
as reference add this code:

Like Nz([Forms]![yourformname]![yourcomboboxname],"*")

then in your combobox after Update event you need to make a subform requery.

I hope this help.
 

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

Similar Threads

Requery combo box 4
Cascading combos in datasheet 0
Recalc Combo Box - F9 2
Sort order in subform 1
Requery subform 1
Filter subform somehow! 6
Basing one combo box on another 2
Combo Box Update 22

Back
Top