hi
if i want to type something in the text box using code
is sndkey function help me
for example , i would lik eto type "rudwan" then go next
item
how i could use defined keyboard item within send key ?
Sendkeys is full of bugs. For one thing, it will change the Num Lock
setting on your keyboard unpredictably; for another, it sends a single
keystroke, and does not read keystrokes. There is ALWAYS another way
to do anything within Access without using SendKeys! (this isn't
always true if you're running some *other* program from Access).
What you could do instead is use VBA code in the Form's Events. If you
really want to go to the next item by typing seven keystrokes
(rudwan<Enter> or rudwan<Tab>) rather than a single keystroke
(PageDown), you can certainly so so:
Private Sub txtMyTextbox_AfterUpdate)
If Me!txtMyTextbox = "rudwan" Then
DoCmd.GoToRecord acForm, Me.Name, acNextRecord
End If
End Sub
John W. Vinson[MVP]