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

need code for VBA in access for a refresh button

Status
Not open for further replies.

firemanjr

Programmer
Feb 16, 2005
1
0
0
US
I have a data entry form "FrmCliententry" that has a field city(combo box), that field is based on a table. If the city is not in the list a subform comes up to enter the new city name.
When the subform closes I want to refresh the main form so the new city appears in the combo box
Thanks
 
Can you please post the whole code of the NotInList event procedure of the combo ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Try this:

Private Sub city_AfterUpdate()
Me!city.Requery
End Sub


Private Sub city_Change()
Me.Refresh
End Sub

Tivoli0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top