Error code 2449 refers
ErrorString
There is an invalid method in an expression.@For example, you may have tried to use the Print method with an object other than Report or Debug.@@2@2015551@1
Doesn't tell you much really!
I am using A97 and there does not appear to be any Event for Mouse Over for any of the control types.
As before, I'm not convinced it can be done but would also be interested if anyone comes up with the goods!
For anyone interested I got this to work. I put a regular box around the subform and used the following code:
Private Sub bxLoadPlanningFocus_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim ctlCurrentControl As Control
Set ctlCurrentControl = Screen.ActiveControl
If ctlCurrentControl = "sfLoadList" Then
sfAvailDrv.SetFocus
Else
sfLoadList.SetFocus
End If
End Sub
Now when I move the mouse over the box frame int sets focus to the subform. This is a contiuous form and to scroll through the record I had to click in the form which had the potential to change data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.