Absolute mouse position
Posted on 2007-11-15
How can I find/calculate the absolute mouse position?
I have a subform with data in "continuous forms". On each detail line there is a button that opens a small form with options, and I would like to open that form next to the current mouse position.
DoCmd.MoveSize allows me to position that form, but requires absolute co-ordinates (within the Access window). The OnMouseDown event gives me only the relative mouse position (within the control). Given the fact that the control is in a continuos form, I don't even know the absolute position of the control, so I'm stuck.