Dsum

F

Frank Dulk

Am I placing that expression in the origin of a control the because not this
working?

=DSum([pg_valorapagar];[QryResumoPagamento];[pg_datapagamento] is null)
 
F

Frank Dulk

Thank you

Ken Snell said:
=DSum("[pg_valorapagar]";"[QryResumoPagamento]";"[pg_datapagamento] is
null")

--

Ken Snell
<MS ACCESS MVP>

Frank Dulk said:
Am I placing that expression in the origin of a control the because not this
working?

=DSum([pg_valorapagar];[QryResumoPagamento];[pg_datapagamento] is null)
 
F

Frank Dulk

and that?

=DSum("[pg_valorapagar]","[QryResumoPagamento]","[pg_datapagamento] is
null" and pg_pedido= me!pedido)


Ken Snell said:
=DSum("[pg_valorapagar]";"[QryResumoPagamento]";"[pg_datapagamento] is
null")

--

Ken Snell
<MS ACCESS MVP>

Frank Dulk said:
Am I placing that expression in the origin of a control the because not this
working?

=DSum([pg_valorapagar];[QryResumoPagamento];[pg_datapagamento] is null)
 
K

Ken Snell

=DSum("[pg_valorapagar]","[QryResumoPagamento]","[pg_datapagamento] is null
and pg_pedido= " & me!pedido)

The above assumes that pg_pedido is formatted as a number. If formatted as
text,

=DSum("[pg_valorapagar]","[QryResumoPagamento]","[pg_datapagamento] is null
and pg_pedido= '" & me!pedido & "'")


Both examples assume that you're using this from VBA code. If you are using
it as a control source of a control on a form or report, then delete the me!
from the last part for each.


--

Ken Snell
<MS ACCESS MVP>

Frank Dulk said:
and that?

=DSum("[pg_valorapagar]","[QryResumoPagamento]","[pg_datapagamento] is
null" and pg_pedido= me!pedido)


Ken Snell said:
=DSum("[pg_valorapagar]";"[QryResumoPagamento]";"[pg_datapagamento] is
null")

--

Ken Snell
<MS ACCESS MVP>

Frank Dulk said:
Am I placing that expression in the origin of a control the because
not
this
working?

=DSum([pg_valorapagar];[QryResumoPagamento];[pg_datapagamento] is null)
 

Ask a Question

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.

Ask a Question

Top