The popup gets opened byt the before update of the "artikel" column. The grid is a subform contained in (continuous) subform control.
I need to position the popup depending on the position of the input field.
From the beforeupdate sub, I can determine the subform's coordiates (windowleft, windowtop), but the "activecontrol.left" and "activecontrol.top" both return 0
At this stage, I'm afraid I have to position the popup form at design time which would take care of the position of the popup for the first line, and use the me.recordset.absoluteposition to determine the "top" for the other rows.
Anybody has a better idea? Why can't I retrieve the position of the activecontrol at runtime?
My continuous form mimicks a datasheet, and I'm calling the popup from the first column, which is a textbox at left = 0, top = 0. What I am looking for is a way to open the popup depending on the line the user is on. In fact that's always the same control and that's why always get the zero return.
In fact what I'm looking for is a way to get the coordintes of the "current detail", detail does not seem to return it's coordinate (other than it's height) for some reason.
Anyway, thanks for your upload. It has really helped at lot. Merci beaucoup
Last edited by Marc Grajower; 01-05-10 at 19:51.
On a related note, I am using Access with multiple monitors.
I am trying to move a form up and left when a subform opens.
It always pushes it to another monitor. In fact, as a test, I had it show me the current position via msgbox. It reported something like (5000, 3000). I then moved it to 1,1 using movesize. Then I had it report its current position again (msgbox me.windowleft & me.windowtop).
It moved it to the far upper left corner (logical for 1,1) but went to another monitor AND reported its position as -16000, -400.
It did this even with the windows maximized to the monitor.
Movesize is supposed to move relative to the open window, but the multiple screens must be a wildcard.
Does anyone have any ideas? Or am I missing something obvious?