Dcount Help

Huey462

Board Regular
Joined
Jul 25, 2011
Messages
147
I have a table that lists a date when everyone was issued a piece of cold weather gear. I need to make a summary report to quickly tabulate how many of each item was given out.
Table: tblIEU
Field: GlovesCold1

The frustrating part is this looks like it should be straightforward but it is not.

Using the following page as a guideline I tried variations of
General: DLookup Usage Samples

=DCount("[GlovesCold1]",[Criteria]="data")
and
=DCount("[GlovesCold1]",[tblIEU],[Criteria]="*")

Neither of which work, either displaying #name, or a window prompting me to enter a value to search by.

Any help would be appreciated
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
The criteria and table should be in quotes,

=DCount("[GlovesCold1]","[tblIEU]","[Criteria]='data'")

and if you are using a wildcard you need to use Like.

=DCount("[GlovesCold1]","[tblIEU]","[Criteria] Like '*'")
 
Upvote 0
I truly appreciate the quick reply but I suspect that the way Access is looking at the data may be causing the issue. I've tried both of your suggestion and "#Error" keeps showing up on the screen. The fields contain a date value, so we can see when Johnny was given a pair of cold weather boots.
 
Upvote 0

Forum statistics

Threads
1,221,834
Messages
6,162,268
Members
451,758
Latest member
lmcquade91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top