T
Tom
Hi all,
I`m new to VBA,
This is my code:
Private Sub Form_Load()
Dim Rst As Recordset
Dim i As Variant
Set Rst = CurrentDb.OpenRecordset("Chartqry")
Set i = Rst.OpenRecordset.RecordCount
If i >0 Then
MsgBox "something"
End If
Rst.Close
Set Rst = Nothing
End Sub
I get "object required" error
Thanks,
Tom
I`m new to VBA,
This is my code:
Private Sub Form_Load()
Dim Rst As Recordset
Dim i As Variant
Set Rst = CurrentDb.OpenRecordset("Chartqry")
Set i = Rst.OpenRecordset.RecordCount
If i >0 Then
MsgBox "something"
End If
Rst.Close
Set Rst = Nothing
End Sub
I get "object required" error
Thanks,
Tom