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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rs.recordcount (inaccurate) 3

Status
Not open for further replies.

philcon

Technical User
Feb 5, 2002
139
GB
Hi there,

I know this is going to be a no-brainer, but could anyone tell me why the following code produces a record count of 1 rather than 4 (the number or records in the table)

Many thks in advance


Phil.

Private Sub Command141_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset

Set db = CurrentDb
Set rs = db.OpenRecordset("tbl_MailpackConsolidate", dbOpenDynaset)
Debug.Print rs.RecordCount

End Sub
 
Did I start all this ?

Sseriously though as someone who is trying to learn "good" vba coding, I have appreciated all posts so thanks all

Philcon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top