I have a Table with a list of Defendants in legal suits. I have a report that goes out and one of the fields in the report needs to be a 1 = Loan Signer being sued, 2 = Co-signer of loan being sued, or 3 = Both loan signer and co-signer are being sued.
Each record contains a unique field call Debt#. The original loan signer and co-signer fields can sometimes be blank. These fields are FD1 (Name) and FD1A1 (Address) for loan signer and FD2 and FD2A1 for co-signer.
I need a query that returns a value of:
"1" if FD1 or FD1A1 IS NOT NULL
"2" if FD2 or FD2A1 IS NOT NULL or
"3" if FD1, FD1A1, FD2, and FD2A1 ARE NOT NULL
I was thinking somethink like IF FD1 or FD1A1 are not null then return a "1" if they are both blank then a "0" IF FD2 or FD2A1 are not null then return a "2" if they are both blank then a "0". Then add the two values togeather to get my result. Make sense? Please help as I am starting to pull out large amounts of hair.
Thanks,
John
Each record contains a unique field call Debt#. The original loan signer and co-signer fields can sometimes be blank. These fields are FD1 (Name) and FD1A1 (Address) for loan signer and FD2 and FD2A1 for co-signer.
I need a query that returns a value of:
"1" if FD1 or FD1A1 IS NOT NULL
"2" if FD2 or FD2A1 IS NOT NULL or
"3" if FD1, FD1A1, FD2, and FD2A1 ARE NOT NULL
I was thinking somethink like IF FD1 or FD1A1 are not null then return a "1" if they are both blank then a "0" IF FD2 or FD2A1 are not null then return a "2" if they are both blank then a "0". Then add the two values togeather to get my result. Make sense? Please help as I am starting to pull out large amounts of hair.
Thanks,
John