dbTalk Databases Forums  

Query Formulas

comp.database.ms-access comp.database.ms-access


Discuss Query Formulas in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ralph
 
Posts: n/a

Default Query Formulas - 04-20-2004 , 09:10 AM






Am trying to build an accounts receivable aging program. To put the
amounts in the correct columns I am using the following formulas -
For the 1st column:
Col_1: IIf([Due]>[Aging Date]-30,[BalanceDue],0)
For the 2nd column:
Column_2: IIf([Due]>[Aging Date]-60,IIf([Due]<[Aging
Date]-30,[BalanceDue],0))

And so on . . . The names in the brackets are other column headings in
the same query. [Due] is a date field; [Aging Date] is a date field
that is input by the "operator" upon query execution; [BalanceDue] is
a currency amount that is calculated from other amounts in the same
query.

When executing the query I get the "#Error" message displayed in the
output.

Please help!

Thanks

Ralph

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.