Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Forums > Access
Microsoft Access Forum

Welcome to the Microsoft Access Forum. Access is by far our most popular topic here at Computer Learning Zone. This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, all you have to do is enroll in one of my courses. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

NEW: Access Developer Students, make sure you subscribe to the Developer Student Forum.

Click Here to Post a comment and start a new discussion

Please read the FORUM RULES before posting.


DCount Upload Images   Link 
Andrew Cleary 
14 days ago
I am trying to use DCount to count the number of records in a set of queries and send it to a table using an append query.  Am I doing this right or is there a better way...
Alex Hedley
13 days ago
Is this to store historic data?
Scott Axton
13 days ago
Andrew -
Your question doesn't really describe what you are trying to do very well.  The short answer is no, DCount is probably NOT what you need to use.
DCount answers the question "how many?"  For example if I wanted a COUNT of customers that lived in Colorado.
Andrew Cleary
11 days ago
Yes this is for historical data.  I want the database to store how many of an item we had in a certain area of our building when we update the database.
Scott Axton
11 days ago
If you are just wanting a record of what was there at a given point in time, yes you could use DCount to append to the history table.  Such as:
3/23/2021    Bay1  5 gold bars
4/01/2021    Bay1  6 gold bars
5/15/2021    Bay1  4 gold bars
Richard Rost
11 days ago
The bottom line is YES it can be done, but it all depends on how you have your tables set up, and how much VBA/SQL you know. I see you're only a Beginner user, so I'm not sure how much of this you will understand without further training, but the easiest way to do this in VBA would be (this is pseudocode)...

X = DCount(Records in Query1)
X = X + DCount(Records in Query2)
DoCmd.RunSQL "INSERT INTO ResultTable..."

So yes. Pretty much ANYTHING can be done. All depends on the specifics. See DCount, INSERT INTO, Intro to VBA
Andrew Cleary
8 days ago
Thanks Richard I will check out the links you have provided.  I have a lot of ideas in my head it is just getting those ideas into my database.  Your video's have been awesome and are my go to when trying out something new!
Richard Rost
8 days ago
Glad you like them. :)
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

6/14/2021Access Developer 29
6/13/2021Multi-Field Find
6/8/2021Access SQL Server Online Seminar
6/8/2021Access SQL Server Lessons
6/8/2021Access SQL Server Online
6/5/2021Access Forum Posting Rules
6/3/2021Disable Bypass Key
6/3/2021Show/Hide Buttons

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: microsoft access forum  PermaLink