A
Al
I am using the following code:
dim rst17Cases As Recordset,sql As String
sql = "SELECT tbl17cases.OLDPIN, tbl17cases.StartDate FROM
tbl17cases"
Set db = CurrentDb()
Set rst17Cases = db.OpenRecordset(sql)
Debug.Print rst17Cases.RecordCount
The problem is that my recordcount is always 1 even though
my table has 17 records? I used similar code in a
different place and it counts the table right. why is not
it working here. the code is behind a command button and I
am working in Access 2002. any help please
thanks
Al
dim rst17Cases As Recordset,sql As String
sql = "SELECT tbl17cases.OLDPIN, tbl17cases.StartDate FROM
tbl17cases"
Set db = CurrentDb()
Set rst17Cases = db.OpenRecordset(sql)
Debug.Print rst17Cases.RecordCount
The problem is that my recordcount is always 1 even though
my table has 17 records? I used similar code in a
different place and it counts the table right. why is not
it working here. the code is behind a command button and I
am working in Access 2002. any help please
thanks
Al