Re: Need correct conditional statement language

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Conan,

That last formula you gave me was not quite correct, b/c the query says
there is a syntax error (comma) in the formula. Here's how it looks now

Balance: IIf([Full Payment]>0,[Amt]-[Full Payment],IIf([Full Payment]=0 Or
[Full Payment] Is Null And [Partial Payment]<=0 Or [Partial Payment] Is
Null,[Amt],IIf([Full Payment]=0 Or [Full Payment] Is Null And [Partial
Payment]>0,[Amt]-([Partial Payment]+[AmtOfRecoveryFee],"0"))))
--
Cloudbuster


"Conan Kelly" wrote:

Cloudbuster,

Balance (column name): IIF ([field name1]>$0.00, [field name2]-[field
name1],IIF [field name]1=$0.00 or [field name] is NULL AND [field
name3]<=$0.00 or [field name3] is NULL, [field name2], IIF [field
name1]=$0.00 or [field name1] is NULL AND [field name3]>$0.00, [field
name2]-([field name3]+[field name4],"you are missing this last
argument--''What if none of the conditions are met?''")

Notice my little note in there at the very end. Replace my note (everything
between and including the double quotes) with a zero or a field name or
calculation or your own message (your own message or any text would require
double quotes).

HTH,

Conan






"Cloudbuster" <Cloudbuster@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:303BBD13-8B4B-4FD2-89D1-72AE618A1EE4@xxxxxxxxxxxxxxxx
I want to make the following into a conditional statement. Please let me
know
exactly how it should look. The basic formula is as follows:

Balance (column name): IIF ([field name1]>$0.00, then [field name2]-[field
name1] OR

IIF [field name]1=$0.00 or NULL AND IIF [field name3]<=$0.00 or NULL, then
[field name2] OR

IIF [field name1]=$0.00 or NULL AND IIF [field name3]>$0.00, then [field
name2]-([field name3]+[field name4])



.



Relevant Pages

  • Re: Where to start?
    ... On Sun, 15 Feb 2004, Joe Peschel wrote: ... of what to do with literal quotes in the quoted material (the usual ... if it does underlining of book titles, it does not underline the comma). ... So Usenet idiom follows the same convention for // and **. ...
    (sci.crypt)
  • Re: Where to start?
    ... I agree that small local papers and web pages have quite a few mistakes. ... > of what to do with literal quotes in the quoted material (the usual ... > italics (or, if it does underlining of book titles, it does not ... > underline the comma). ...
    (sci.crypt)
  • Re: Basic Program to Import a CSV file
    ... Also if you then have quotes arround ... csv is more than just a string of comma delimited data, ... OPENSEQ CSVFILE TO SEQIN ELSE STOP ...
    (comp.databases.pick)
  • Re: Excel Save As Options
    ... Many times the item description has double quotes in it for inch ... separator character from a comma to a vertical bar, ... then tell Excel to export the data to a comma separated .CSV file. ...
    (microsoft.public.excel)
  • Excel Save As Options
    ... Many times the item description has double quotes in it for inch ... separator character from a comma to a vertical bar, ... then tell Excel to export the data to a comma separated .CSV file. ...
    (microsoft.public.excel)