Sum function generating syntax error.

  • Thread starter Thread starter Paolo
  • Start date Start date
P

Paolo

This:

=sum(nz([InvoiceCost],0))

generates a syntax error when put in as a control source for an unbound
textbox in the footer of a subform, whereas:

=sum(nz([InvoiceCost]))

is perfectly acceptable.

Any ideas why?

Thanks in advance,

(e-mail address removed)
 
Paolo said:
This:

=sum(nz([InvoiceCost],0))

generates a syntax error when put in as a control source for an
unbound textbox in the footer of a subform, whereas:

=sum(nz([InvoiceCost]))

is perfectly acceptable.

Any ideas why?

Thanks in advance,

(e-mail address removed)

For most of us, that syntax looks quite OK. Some of us, though, lives
non default places ;-) where comma is used as decimalseparator, where
usage of semicolon is more appropriate. Could that be the case where
you reside?

=sum(nz([InvoiceCost];0))
 
Thanks Roy,

Yes I have my computer set to Italian region. Works now.

(e-mail address removed)
Paolo said:
This:

=sum(nz([InvoiceCost],0))

generates a syntax error when put in as a control source for an
unbound textbox in the footer of a subform, whereas:

=sum(nz([InvoiceCost]))

is perfectly acceptable.

Any ideas why?

Thanks in advance,

(e-mail address removed)

For most of us, that syntax looks quite OK. Some of us, though, lives
non default places ;-) where comma is used as decimalseparator, where
usage of semicolon is more appropriate. Could that be the case where
you reside?

=sum(nz([InvoiceCost];0))
 

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

Similar Threads

IIf Problem 5
sum of sums isn't working 2
Sum If function in textbox 0
#error propogation 3
inconsistant result in group footer 2
Calculated control problem 10
Summing in a subform(again) 2
Datasheet subform total 13

Back
Top