Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

//RECORDSET - MISSING RECORDS

Status
Not open for further replies.

trystanhuwwilliams

Programmer
Aug 23, 2002
39
0
0
GB
Hello there, this may be something simple i don't know - but this is my code for counting all the records within my table 'CONTRACTORS':

[/code]
Dim RS As DAO.Recordset
Dim DB As DAO.Database
Set DB = CurrentDb()
Set RS = DB.OpenRecordset("CONTRACTORS")
With RS
.MoveFirst
.MoveLast
End With
tot = RS.RecordCount
MsgBox tot
RS.Close: DB.Close
Set DB = Nothing: Set RS = Nothing [/code]

This procedure tells me that there are 1948 records in this table - when in fact there are exactly 2000 - Does anyone know why this may be?

Thanks

Trystan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top