Re: Open Popup at Mouse DblClick Coordinates
- From: Dave <KillnComputers@xxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 11:59:36 -0700
Thanks Steve
On Aug 29, 1:03 pm, steb...@xxxxxxxxx wrote:
On Aug 29, 12:51 pm, Dave <KillnComput...@xxxxxxxxxxx> wrote:
HI! Thanks for the quick reply. No, that doesn't work.
I may not have been explicit enough
Here's what you need to do: (I have tested this and it works)
----------------------------------------
On the button click event (or wherever the code that opens your form):
DoCmd.OpenForm "davesForm", acNormal, OpenArgs:="100;1300"
----------------------------------------
In the open event of your form:
----------------------------------------
Private Sub Form_Open(Cancel As Integer)
Dim s As String
s = Me.OpenArgs & vbNullString
If Len(s) = 0 Then s = "10;10"
Dim strPosition() As String
strPosition = Split(s, ";")
'In this example, you know X is first and Y is second, so no need
to do any testing for x vs y
'being mixed up.
'you might want to add testing to make sure there are two and blah
blah
Dim xPos as integer
Dim yPos as integer
xPos = CInt(strPosition(0))
yPos = CInt(strPosition(1))
'Call the form move routine with the new position. You could add
height stuff too, if you chose
Call Me.Move(xPos, yPos)
End Sub
----------------------------------------
-Steve
.
- Follow-Ups:
- Re: Open Popup at Mouse DblClick Coordinates
- From: stebain
- Re: Open Popup at Mouse DblClick Coordinates
- References:
- Open Popup at Mouse DblClick Coordinates
- From: Dave
- Re: Open Popup at Mouse DblClick Coordinates
- From: stebain
- Re: Open Popup at Mouse DblClick Coordinates
- From: Dave
- Re: Open Popup at Mouse DblClick Coordinates
- From: stebain
- Open Popup at Mouse DblClick Coordinates
- Prev by Date: Re: Open Popup at Mouse DblClick Coordinates
- Next by Date: Re: How to multiply percentages in a Pivot-action
- Previous by thread: Re: Open Popup at Mouse DblClick Coordinates
- Next by thread: Re: Open Popup at Mouse DblClick Coordinates
- Index(es):