I have a program that accesses an access database. I want to be able to know the number of rows/records in the database, because it will be constantly changing. I've tried rst.MoveLast followed by rst.RecordCount, but it always gives me a value of 1. Is this supposed to work, or is there a better way to do it? I have:
Dim gdbCurrent As Database
Dim rstCurrent As Recordset
...
Set gdbCurrent = _
OpenDatabase(App.Path & "\test.mdb"
...
rstCurrent.MoveLast
intTemp = rstCurrent.RecordCount
...
Any help would be greatly appreciated.
Thanks
Dim gdbCurrent As Database
Dim rstCurrent As Recordset
...
Set gdbCurrent = _
OpenDatabase(App.Path & "\test.mdb"
...
rstCurrent.MoveLast
intTemp = rstCurrent.RecordCount
...
Any help would be greatly appreciated.
Thanks