|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Counting Number of Records from a set date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|