Hi all,
Please help me how to count records when opening a recordset. I want to know if CA is in my State field already of tblManager table.
Function ForCount()
Dim rs As New ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "Select * From tblManager", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If Not .EOF Then
'HOW TO COUNT !State
End If
rs.Update
rs.Close
rs.ActiveConnection = Nothing
End Function
Thanks in advance for your help!!!
Please help me how to count records when opening a recordset. I want to know if CA is in my State field already of tblManager table.
Function ForCount()
Dim rs As New ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "Select * From tblManager", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If Not .EOF Then
'HOW TO COUNT !State
End If
rs.Update
rs.Close
rs.ActiveConnection = Nothing
End Function
Thanks in advance for your help!!!