L
lake2212
How would I subtotal a field called 'Number of Shares' only if another field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
Arvin Meyer said:Try using an expression as the controlsource of a textbox in the form or
subform's footer:
=IIf([Type]="Stock", Sum([Number Of Shares], "")
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
lake2212 said:How would I subtotal a field called 'Number of Shares' only if another
field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
How would I subtotal a field called 'Number of Shares' only if another field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
I am getting an error "the expression you entered has a function containing
the wrong number of arguments". I'm new to this and am not sure where the
parenthesis is missing.
Thanks.
Julie
Arvin Meyer said:Try using an expression as the controlsource of a textbox in the form or
subform's footer:
=IIf([Type]="Stock", Sum([Number Of Shares], "")
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
lake2212 said:How would I subtotal a field called 'Number of Shares' only if another
field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
lake2212 said:I am getting an error "the expression you entered has a function containing
the wrong number of arguments". I'm new to this and am not sure where the
parenthesis is missing.
Thanks.
Julie
Arvin Meyer said:Try using an expression as the controlsource of a textbox in the form or
subform's footer:
=IIf([Type]="Stock", Sum([Number Of Shares], "")
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
lake2212 said:How would I subtotal a field called 'Number of Shares' only if another
field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
Arvin Meyer said:After, [Number Of Shares], it should be:
=IIf([Type]="Stock", Sum([Number Of Shares]), "")
I missed 1
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
lake2212 said:I am getting an error "the expression you entered has a function containing
the wrong number of arguments". I'm new to this and am not sure where the
parenthesis is missing.
Thanks.
Julie
Arvin Meyer said:Try using an expression as the controlsource of a textbox in the form or
subform's footer:
=IIf([Type]="Stock", Sum([Number Of Shares], "")
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
How would I subtotal a field called 'Number of Shares' only if another
field
called 'Type' is equal to the value "Stock"?
Thanks.
Julie
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.