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

Updated record not displayed until mouse pointer is positioned over

Status
Not open for further replies.

thefox56

Programmer
Mar 27, 2002
9
US
I have a form based on a query for filtering, setting values, and formatting reasons. When the user double clicks the product ID field, a qty field is enabled for the user to enter a transaction qty. There is a command button on the form that updates the onhand qty in the underlying table using VB in the OnClick property of the command button. It also adds a detail record in a related table, then sets the focus at the product ID field on the form.

The problem is that the updated value of the onhand qty is not displayed in the body of the form until I move the mouse pointer over the product ID field. I have tried Requery, refresh, recalc, repaint and nothing shows me the updated value until the mouse pointer is moved over the product ID field. How do I get the updated value to display without having to do this or how to I do it through code?
 
if you look at the properties you may have code under mouse move on that field, try deleting and putting on a command button
 
You can also write a macro to do refresh then set it to run like on load or when you need to .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top