Dsum Statement

Hello :)

I'm having some difficulties in doing this statement .

Can anyone help me out? It's the first time I'm using access .

= DSum("[Quantity]", "[ MSP]", "[ ProductCode] LIKE 'EVWP*' AND "[Excluded]"=”FALSE”)

Cheers
samuel maiaSage Co-ordinatorAsked:
Who is Participating?
 
John TsioumprisSoftware & Systems EngineerCommented:
= DSum("[Quantity]", "[ MSP]", "[ ProductCode] LIKE 'EVWP*' AND [Excluded]=FALSE")

Open in new window

0
 
samuel maiaSage Co-ordinatorAuthor Commented:
Hi John :) Thanks very much for your help. Has a told before it's the first time I'm using Access, so I don't know if I'm doing things properly.
Hi John :) Thanks very much for your help. Has a told before it's the first time I'm using Access, so I don't know if I'm doing things properly? My aim is to put on the top of the report the sum of all the product codes that start with EVWP and are not excluded.

Am I doing something wrong?

Once again, thanks very much :D
0
 
John TsioumprisSoftware & Systems EngineerCommented:
The fixed Dsum should work...just test it on some sample data...either you have an error in your data or something else...if you can upload a sample it would be most helpful
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Your table name is MPS, but it's MSP in the statement.

 And please select John's last comment as answer.  I'm just adding on.

Jim.
0
 
samuel maiaSage Co-ordinatorAuthor Commented:
I noted that mistake and I amended it. However, it didn't work. But I'm quite sure that's something I did wrong. I'll endeavor to find out whats wrong.

Thanks very much for your help guys.

:D
0
 
samuel maiaSage Co-ordinatorAuthor Commented:
Statement and Data
Hello again :)

I've been trying to figure out what I've done wrong. However, I'm having some difficulties.
Here it's a part of my data set and both argument for the functions.

For instance, in the Dcount, everything it's easy peasy. But when getting down to the nitty-gritty, the Dsum, something goes wrong.
In my data set, in the exclusion column, I've tried both "False" and "No", but didn't work.

Any idea about whats wrong?

Cheers
0
 
John TsioumprisSoftware & Systems EngineerCommented:
Looks good...i think something must be wrong with your data...maybe a null quantity or something else...go Query Designer and run a SUM with your criteria to see if you get some more info...and also..something i spot... Running Sum -->No
0
 
samuel maiaSage Co-ordinatorAuthor Commented:
sa.JPG
I think its something about the way I was writing the argument. Because now I did the way you can see in the picture and its working (but just for one criteria :(   )
0
 
John TsioumprisSoftware & Systems EngineerCommented:
Exchange the criteria..to see if the other criteria is causing the issue...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.