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

refresh listbox on field update

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
I have a listbox that is populated by query and has 2 columns. Is there a way to refresh the listbox immediately after a text field is updated on a form?

my textbox is called txtservers and my list box is called lstservers
 
In the AfterUpdate event procedure of txtservers:
Me!lstservers.RowSource = Me!lstservers.RowSource

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I see where the listbox refreshes, but it does not change the value to what was changed. I can close out the form and open it up and it is correct.
 
And this ?
In the AfterUpdate event procedure of txtservers:
Me.Dirty = False
DoEvents
Me!lstservers.RowSource = Me!lstservers.RowSource

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top