Moving Cursor and get coordinates to top-left of control in an MS Access Datasheet subform

Mohsin Malik

Registered User.
Local time
Today, 21:08
Joined
Mar 25, 2012
Messages
179
Hello, does anyone know how to move the mouse cursor programmatically to the left side of a particular control within a datasheet view of a subform. To clarify I am looking for a way to obtain the x/y coordinates GetCursorPos for the current record's specific control in datasheet.
 
Here is how you get and set cursor position:


Here is how you select a specific row in datasheet view.


These two should get you started.
 
You will also need to reference the forms columnwidth property for each control to the left of the required control. This may be problematic if the user has reordered the columns or the columns are set to autowidth which has a value of -2
 

Users who are viewing this thread

Back
Top Bottom