C
Cipher via AccessMonster.com
I am using:
Dim Max_Record As Integer
Set rs = New ADODB.Recordset
StrOne = "SELECT * FROM Inject_Cycle " & "WHERE ID=" & Record_Number
rs.Open StrOne, CurrentProject.Connection, adOpenForwardOnly,
adLockReadOnly
Max_Record = Count()
There are only 8 records in the Table Inject_Cycle, so why does Count()
return 39? If I change to:
Max_Record = Count(*), I get a "Compiler Error: Syntax error"
Dim Max_Record As Integer
Set rs = New ADODB.Recordset
StrOne = "SELECT * FROM Inject_Cycle " & "WHERE ID=" & Record_Number
rs.Open StrOne, CurrentProject.Connection, adOpenForwardOnly,
adLockReadOnly
Max_Record = Count()
There are only 8 records in the Table Inject_Cycle, so why does Count()
return 39? If I change to:
Max_Record = Count(*), I get a "Compiler Error: Syntax error"