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

Counting a specific currency record

Status
Not open for further replies.

AMW1106

MIS
Jun 11, 2002
9
US
I am trying to calculate a count of a specific dollar amount. My report includes a column of names, a column of account numbers and a column of fees. I need to calculate the number of times a specific fee amount occurred. I used a formula that was suggested in another thread reply but am receiving #Error. I have listed the formula used below. Any suggestions???

=DCount("[Fee Amt]","PLL FEE Qry","[Fee Amt]='$5.00'")
 
My guess is that your criteria won't find it because you're looking in a Currency field but requesting for String data. Try this:

=DCount("[Fee Amt]","PLL FEE Qry","[Fee Amt]= Format(5,'Currency')")

This wasn't tested for whether the Format should be inside the quotes or not...
Roy
aka BanditWk
Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)
 
Thank you - unfortunately no luck with your suggestion. I am very new to this though so it could be something on my part. Thank you again.
 
amw1106,
Try dcount("[Fee Amt]","PLL FEE Qry","[fee amount] = 5.00").
Use just the 5.00 and not the $ sign.
JP
 
Thanks xaf294 - unfortunately, no luck yet. I am getting the same errors. Thanks for your suggestion!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top