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

Mohsin Malik

Registered User.
Local time
Today, 11:20
Joined
Mar 25, 2012
Messages
175
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.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 02:20
Joined
Feb 28, 2001
Messages
27,186
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.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 08:20
Joined
Feb 19, 2013
Messages
16,612
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

Top Bottom