Does anybody know of how a record can be selected from a datasheet view of a table using keystrokes. The only way in which an operator can select a specific record is by clicking on the record selector using the mouse.
You could use the following code when you open and close a form (remember to set it back on close, if you want to keep it the same as you had before you opened it):
----------
Private Sub Form_Open()
Application.SetOption "Behavior Entering Field", 1
End Sub
----------
----------
Private Sub Form_Close()
Application.SetOption "Behavior Entering Field", 0
End Sub
----------
The value at the end of the SetOption line is either 0, 1 or 2.
0 = Select Entire Field
1 = Go To Start Of Field
2 = Go To End Of Field
Hope this helps.
Jim Lunde
compugeeks@hotmail.com
Custom Application Development
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.