G Graham R Seach May 7, 2005 #3 Lauren, In both DAO and ADO it is the RecordCount method. 'In DAO... Set rs = CurrentDb.OpenRecordset("tblMyTable") rs.MoveLast '*** Very important MsgBox rs.RecordCount rs.MoveFirst '*** Equally as important 'In ADO... rs.Open "tblMyTable", conn MsgBox rs.RecordCount Regards, Graham R Seach Microsoft Access MVP Sydney, Australia
Lauren, In both DAO and ADO it is the RecordCount method. 'In DAO... Set rs = CurrentDb.OpenRecordset("tblMyTable") rs.MoveLast '*** Very important MsgBox rs.RecordCount rs.MoveFirst '*** Equally as important 'In ADO... rs.Open "tblMyTable", conn MsgBox rs.RecordCount Regards, Graham R Seach Microsoft Access MVP Sydney, Australia