Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone familiar with Prolog reports?

Status
Not open for further replies.

l8kerfan

Technical User
Joined
Feb 15, 2006
Messages
12
Location
US
This is the formula I'm having troubles with...

If {Company Setup.Company~CompanyID} = "CWDCON"
Then {Contracts_10_ttx.Contracts~Description} Else

If {Company Setup.Company~CompanyID} = "CWD"
Then {Contracts_10_ttx.Contracts~Description} Else

If IsNull({Contracts_10_ttx.Contracts~ContractID}) And
{Company Setup.LU_Divisions~DivisionID} < "01000"
Then {Company Setup.LU_Divisions~Description} Else

If IsNull({Contracts_10_ttx.Contracts~ContractID}) And
{Company Setup.LU_Divisions~DivisionID} >= "01000"
Then {Company Setup.Company~SpecSection} Else

{Contracts_10_ttx.Contracts~Description}

I'm using version 8.5. The formula is part of a field object. I'm trying to populate the field using the formula above. It populates the field correctly except for one which it leaves blank. The companies do have the same company name but have different company IDs. Any suggestions on how to fix this? Thanks.
 
hi
try doing your isnull first


Durango122
Remember to used all fingers when waving to policemen :-)
 
That worked great!! Thank you so much. [2thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top