MackMan
Registered User.
- Local time
- Today, 09:14
- Joined
- Nov 25, 2014
- Messages
- 174
Hi all. I'm using the following on a Click event to load a real time tooltip showing details where there is more than one entry on a related table...
On the whole it's displaying the correct information (formatting aside) however...
I'd like to open the DAO on a mouseover AND find the location of the cursor in relation to the record it's over on a continuous subform.
Is it possible to find the cursor location in the currentdb?
As always many thanks and appreciate your advise.
Code:
Dim strSQL As String
Dim dbsmyaccounts As DAO.Database
Dim rstSplits As DAO.Recordset
If Me.Part <> "Split : Multiple Parts" Then
Exit Sub
Else
strSQL = "Select * from qryMouseoverPARTS Where EntryID = " & Me.EntryID
Set dbsmyaccounts = CurrentDb
Set rstSplits = dbsmyaccounts.OpenRecordset(strSQL, dbOpenDynaset)
With rstSplits
If .RecordCount > 0 Then
strSQL = ""
Do While .EOF = False
strSQL = strSQL & !PartNo & " : " & !PartDescription & " " & Format(!Amount, "Currency") & vbCrLf
.MoveNext
Loop
End If
End With
Me.Part.ControlTipText = strSQL
Set rstSplits = Nothing
Set dbsmyaccounts = Nothing
End If
I'd like to open the DAO on a mouseover AND find the location of the cursor in relation to the record it's over on a continuous subform.
Is it possible to find the cursor location in the currentdb?
As always many thanks and appreciate your advise.