On KeyUp problem

S

Sam

for moveing to a client in a form i use that code:

Private Sub InputTxtBox_KeyUp(KeyCode As Integer, Shift As Integer)
Me.Recalc
InputTxtBox.OnKeyUp = ""
Me.Requery
InputTxtBox.SetFocus
SendKeys "{F2}", True
InputTxtBox.OnKeyUp = "[Event Procedure]"
End Sub

the recordsource based on an input parameter:
select * from tbl where ClientName>=?

parmeter is:
ClientName nvarchar(15)=forms!MyFrm!InputTxtBox

when i write the letters into the InputTxtBox in slow speed i get the asked
ClientName
but when i do it faster it comes near the asked ClientName but not to target
i supose it happends because the requery action is slower then the writing
speed

is there any better way to do this job?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top