PC Review


Reply
Thread Tools Rate Thread

dsum on report getting #error

 
 
Alan
Guest
Posts: n/a
 
      30th Mar 2010
=DSum("[Amount]"-"[Amount2]","Tabel1"," [CustomerNo] = " & [CustomerNo])


Have this on my report

my report fives me this

CustomerNo Amount Amount2 result

C00001 1000 1000 #error
C00002 1000 2000 #error

Please can some tell me why i'm getting error??
 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      31st Mar 2010
I'm not sure why DSum() is used when it looks like a simple control source
of
=Amount-Amount2
should work the same.


--
Duane Hookom
MS Access MVP

"Marshall Barton" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Alan wrote:
>
>>=DSum("[Amount]"-"[Amount2]","Tabel1"," [CustomerNo] = " & [CustomerNo])
>>
>>
>>Have this on my report
>>
>>my report fives me this
>>
>>CustomerNo Amount Amount2 result
>>
>>C00001 1000 1000 #error
>>C00002 1000 2000 #error

>
>
> You have the quotes around the names instead of around the
> expression. Try it this way:
>
> =DSum("Amount-Amount2","Tabel1","CustomerNo =" & CustomerNo)
>
> All those [ ] were unnecessary so I removed them.
> --
> Marsh
> MVP [MS Access]


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dlook & DSum in Report and groups by Report Groupings gumby Microsoft Access Reports 1 18th Feb 2007 01:24 PM
Dsum on a report =?Utf-8?B?bmV2cG9l?= Microsoft Access 8 29th Jan 2007 09:26 PM
DSUM Report =?Utf-8?B?UmF5IFRvZGQgSnI=?= Microsoft Access Reports 3 21st Nov 2005 09:48 PM
DSum in a report =?Utf-8?B?bmVlbm1hcmll?= Microsoft Access Reports 0 28th Apr 2005 03:38 PM
DSum in Report =?Utf-8?B?bmVlbm1hcmll?= Microsoft Access Reports 7 9th Apr 2005 10:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 PM.