sum first before calculation (1 Viewer)

luzz

Registered User.
Local time
Today, 04:12
Joined
Aug 23, 2017
Messages
346
The dsum would go on the form. The link I posted demonstrates how to implement criteria with it.

I faced this error when i do dsum. The color "Deep Black" do exist in the system
 

Attachments

  • Untitled.png
    Untitled.png
    36.6 KB · Views: 42

Minty

AWF VIP
Local time
Today, 12:12
Joined
Jul 26, 2013
Messages
10,371
You have formatted that as a field because of the square brackets around it.
I don't understand why you would hard code that color value, but if that's what you were trying to do then you would have to write it like;
Code:
DSum("[Our Qty]", "UnmatchNewFabricPOQry","[Color] = 'Deep Black'")

Note that Color is a reserved word, so needs the square brackets around it to avoid other errors .
You really should remove spaces from field names as well they cause heaps of extra typing and are a constant source of errors.
 

plog

Banishment Pending
Local time
Today, 06:12
Joined
May 11, 2011
Messages
11,646
Weird. You quoted my response, yet you still used the DSum in a query.

As for the syntax error, Minty covered that.
 

Users who are viewing this thread

Top Bottom