My scenario: I have built up a form with multiple input fields. One of the text input field has an underlying event listener, which catches up the "change" event.
Private Sub orderID_Change()
If Not IsNull(Me.orderID.Text) Then
Set Me.orders.Recordset = ordermanager.getOrder(Me.orderID.Text)
End If
End Sub
When the user types in an specific order number, the callback runs for each letter/sign the user has already typed into the text field.
My question: Is there a possible solution in msaccess, to create a time delay for a specific input mask?
For example: A user is typing an order number with some digits. When the first change event is fired, an internal timer function starts to decrement a counter. As long as now additional interaction happens with the user, the timer runs out of time and calls the underlying function. If in the meantime, additional input has made by the user, the counter should be reset.
For example: user types in "123"
SYSTEM : waiting for input
USER INPUT : 1
SYSTEM : timer 100ms
SYSTEM : timer 80ms
SYSTEM : timer 60ms
SYSTEM : timer 40ms
USER INPUT : 2
SYSTEM : timer 100ms
SYSTEM : timer 80ms
USER INPUT : 3
SYSTEM : timer 100ms
SYSTEM : timer 80ms
SYSTEM : timer 60ms
SYSTEM : timer 40ms
SYSTEM : timer 20ms
SYSTEM : timer 0ms
SYSTEM : Run Routine