Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 30th, 2005, 08:12 AM
yakcam yakcam is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 yakcam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 29 sec
Reputation Power: 0
Exclamation Counting Number of Records from a set date

I have DB that i am setting up that i wish to track the number of records entered after a set date

I have a date field which will be the field that is used as a fixed date for an item that has been changed next to this field i would like to have a text box that counts the number of reocrds entered in the main table after the fixed date.

Can this be doen if so can anyone help me

Reply With Quote
  #2  
Old August 1st, 2005, 10:04 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Use the DCount function:

Dim strDate As String
strDate = SetDateControl

=DCount("*", "MainTable", "[FixedDate] >#" & strDate & "#")

SetDateControl is the control on your form with the date that you will use as the criteria.

Change [FixedDate] and "MainTable" with the correct field name and table name.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Counting Number of Records from a set date


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT