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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resort Entries in Combo Box

Status
Not open for further replies.

Digsys

Technical User
Jun 27, 2002
170
AU
I use a pop-up form to add an entry to the table that is being used as rowsource for a combo box. The problem is that when I close the popup form, I need to re-sort the entries so that the new one is included. Can anyone tell me how to do this
 
In the On_Close event of your pop-up form, requery the combo box on the calling form. (you can also set the value of the combo box to the new value... let me know if you need help with that)...

Assumptions:
Calling Form (that called pop-up form): frmOriginal
Combo Box (On frmOriginal): cboCategory


Private Sub Form_Close()
Forms!frmOriginal!cboCategory.Requery
End Sub

Hope this helps....

Kevin
 
Thanks very very much Krsherm. It worked perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top