Private Sub GetQueryResult()
Dim rs As New ADODB.Recordset
rs.Open "YourQuery", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If rs.RecordCount>0 Then
MsgBox "YourQuery has " & rs.RecordCount & "record(s)."
Else
MsgBox "Nothing in yourQuery!"
End If
End Sub