I have a form with unbound controls. The controls are updated through the Execute method. I am using an SQL statement that updates a specific field in a table. I recently added the BlockInput API call so that my users, who like to do a bunch of updates at once, don't whip through the fields and get ahead of the SQL update thus receiving an error message that the data has been updated since their edits since in reality it is their update causing the error.
The BlockInput works great but unfortunately if input is blocked before the Execute statement then when input is unblocked the control the user has moved to is in a select mode. The hourglass icon appears and when the mouse is moved text is highlighted. The only way to get out of this is to click on the mouse again. Not even pressing ESC on the keyboard helps. If the BlockInput call is right after the execute statement all is fine so I am sure it is this command causing the glitch. I can't figure out how to avoid the problem. Suggestions are appreciated. Is there a way to exit from selecting text, programatically I mean, or is there a better solution?