A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Error on Sum



 
 
Thread Tools Display Modes
  #1  
Old September 10th, 2007, 10:06 AM posted to microsoft.public.access.forms
benj
external usenet poster
 
Posts: 48
Default #Error on Sum

Good day! am getting #Error on my unbound field with a control source:
=Sum(IIf(FL_billing_ext.Form!Paid=Yes,FL_billing_e xt.Form!SubTotal,0)).

The form FL_billing_ext has a record source:
SELECT billing_ext.bnum, billing_ext.bsort, billing_ext.Paid,
billing_ext.[OR number], billing_ext.Test, Test.AMOUNT, billing_ext.Qty,
billing_ext.Discount, ((100-[Discount])/100)*([AMOUNT]*[Qty]) AS SubTotal
FROM billing_ext INNER JOIN Test ON billing_ext.Test = Test.ID;

The unbound field is from the form FL_billing, its in one-to-many
relationship with FL_billing_ext.

How can I get the "Sum" and not #Error. thanks in advance!

  #2  
Old September 14th, 2007, 02:58 AM posted to microsoft.public.access.forms
bhipwell via AccessMonster.com
external usenet poster
 
Posts: 152
Default #Error on Sum

You need quotes around the word "Yes"

B

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200709/1

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.