Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
DB Killer
David Clement 
      
2 years ago
Hello Richard,
This is a curiosity more than anything else.

I have a DB that I have created and I wanted to have an unbound box display the number of records in that DB.

This is the name of the box in the properties of the box: txtCount.
This is the control code for the box: =Count(*)

Doing this makes the DB unusable for some reason. it won't even let me go into safe mode to try to fix it. I tried it twice, both ending up with the same result.

Thank goodness for my back up!

What did I do Wrong?
Not having that control in the DB works just fine.

Thank you!


Alex Hedley  @Reply  
           
2 years ago
What is the RecordSource of the Form?
Richard Rost  @Reply  
          
2 years ago
That's weird... but you can't use Count with an unbound form. You can use it with a BOUND form in a footer, and that will count the records in that form's recordsource. If you want to use an unbound form, you'll need to use DCount and specify a table/query/SQL statement.
Sami Shamma  @Reply  
             
2 years ago
Are you trying to count all the records in all the tables in the DB?
John Davy  @Reply  
          
2 years ago
Hi David

This is Rick's vba from a Navigation Box
Private Sub Form_Current()
   RecCount.Caption = Me.Recordset.AbsolutePosition + 1 & " of " & Me.Recordset.RecordCount
End Sub

HTH  John

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 12:37:07 PM. PLT: 1s