| | |
|
|
|
MOUSE OVER |
| message from Ray on 18 May 2004 |
I would like to be able to mouse over and object to open
but when mouse is past the object it closes the window. I
can currently open the object with mouse move but cannot
find a way to close it.
Any information would be much appreciated.
Thanks,
Ray
|
| Graham R Seach replied to Ray on 19 May 2004 |
Ray,
Declare the object variable at module-level. If you declare it at
procedure-level, it will go out of scope when the procedure ends, and your
object will be destroyed.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
"Ray" <anonymous@discussions.microsoft.com> wrote in message
news:ed0301c43d45$20464390$a401280a@phx.gbl...
|
| anonymous replied to Graham R Seach on 18 May 2004 |
OK!... NOw seeing as I am fairly new at Access... can you
be a little more specific in terms that I may be able to
understand?
Also is there a simple way to creat a pull down menu for
a search that contains the information from a feild
rather than the acces window?
Ray
declare it at
procedure ends, and your
0764559036.html
message
open
window. I
cannot
|
| Graham R Seach replied to anonymous on 19 May 2004 |
Private Sub myControl_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
Dim objMyObject As Object
'Remaining implementation omitted
End Sub
You need to remove the "Dim objMyObject..." line from where it is, to the
very top of the code window, so it looks like this:
Option Compare Database
Option Explicit
Dim objMyObject As Object
You might also want to change the keyword "Dim" to "Private". Although the
"Dim" keyword is functionally equivalent to "Private", using "Private" makes
it just that little bit more readable.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
<anonymous@discussions.microsoft.com> wrote in message
news:ef5501c43d49$4d568800$a501280a@phx.gbl...
|
|
Archived message: MOUSE OVER (Microsoft Access)