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!

count rows 1

Status
Not open for further replies.

jamesmills

Technical User
Jul 30, 2003
43
GB
simple i am sure but not for somone who does not know too much about access at moment....

i would like to count how many records there are in a table and then display this in a lable
 
lol......... i got it sorted last night!
See what i did wrong?

Dim finalCount As Integer

'finalCount = MyTableRecCount = DCount("ID", "tblCustomers")
'should be
finalCount = DCount("ID", "tblCustomers")

lblTotalCustomers.Caption = finalCount
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top