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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dsum count arror 1

Status
Not open for further replies.

ajking

Technical User
Aug 13, 2002
229
I have a table "tbMain_Rec" which contains, amongst others, two fields [Call_Vol] and [txtDate]
if I use a basic dsum function eg.
Vol = DSum("[call_vol]", "tbmain_rec") the resulting 'Vol'= 75 which agrees with a manual count of the contents of the [call_vol]column
but if I use the following date criteria which covers the full range of the table "tbMain_Rec":
Vol = DSum"[Call_Vol]", "tbmain_Rec", "[txtDate] between #01/10/2006# And #24/11/2006#"). The result = 40
Can anyone explain what is causing this anomaly?

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
You must use US or ANSI format dates:

mm/dd/yyyy or yyyy/mm/dd

Or suitable variations of the above.
 
Hi Remou
Many thanks! I will rejig my coding.

'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top