PC Review


Reply
Thread Tools Rate Thread

dsum with multiple criteria and decimals

 
 
New Member
Join Date: Jul 2011
Posts: 2
 
      22nd Jul 2011
Hello,
I have a problem with Dsum. I suppose that is because of regional settings. I am from Czech Republic and MS Access uses comma instead of dot in decimals digits. So expression

Kumulativne: DSum([Fehlerkosten];tblPoctyChybPareto;"[Fehlerkosten]>=" & [FehlerkostenTotal])

(Fehlerekosten is number field) returns #Error with msg: "Syntax mistake(comma) in expression [Fehlerkosten]>=27,26"

Is possible to fix it somehow? It worked, when i changed field Fehlerkosten into text type with proper formating ("[Fehlerkosten]>=""" & [FehlerkostenTotal]&"""") but then is impossible to make sum in pivot charts.

Second problem,which I have is with multiple criteria in dsum. I am using

"[Datum]=""" & [Datum] & """"

where Datum is text field identifiing a date in format YY-MM (ex 11-07 etc.) It is working just fine, but when I want to add a second criterium it makes just sum and ignores criteria.. what I wish working expression looking like this:

DSum("[Fehlerkosten]";"tblPoctyChybPareto";("[Fehlerkosten]>= " & [FehlerkostenTotal]) And ("[Datum]=""" & [Datum] & """"))

I will be grateful for any advice. It is turning me crazy :-)
Thx a lot and sorry for bad English.
 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dsum with multiple criteria and decimals Miiirek Microsoft Access Reports 0 21st Jul 2011 01:21 PM
DSum with multiple criteria GD Microsoft Access Getting Started 1 25th Aug 2009 09:33 PM
Re: DSum with multiple criteria Allen Browne Microsoft Access Queries 0 23rd Apr 2009 10:24 AM
Re: DSum with multiple criteria John W. Vinson Microsoft Access Forms 3 3rd Feb 2009 02:46 AM
Dsum Multiple Criteria =?Utf-8?B?YnJpYW5r?= Microsoft Access Queries 4 14th Nov 2006 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 PM.