Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox - refresh form

Status
Not open for further replies.

anniez

IS-IT--Management
Apr 13, 2001
43
0
0
US
On my form, (access 97) combo1 selects dept.
Combo2 selects employees who are in that department.
It looks beautiful the first time but if I select, another department, it still only show those in the department originally selected.
Is it a repaint? requery? After update of combo1?
I've tried all morning to search for the answer but I'm getting frustrated.
Thanks
 
on the afterupdate event of combo1 add the following line of code...

Me!Combo2.Requery

P.S. I would Highly recommend using meaningful names for the comboboxes like cboDept and cboEmployee... Makes everything easier to read.
 
Thank you! Thank you! Thank you!
That is exactly what I needed - and so simple. FYI-I do name the comboboxes to reflect their data in the applications.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top