Sep 12, 2012 #1 mharkin Technical User May 9, 2012 16 GB Hi I have a calculation field with the below calculation, the problem i have is that the field goes to a negative value, I want it to stop at 0. Can someone please help me with this, any help would be very much appreciated. Thanks Mark
Hi I have a calculation field with the below calculation, the problem i have is that the field goes to a negative value, I want it to stop at 0. Can someone please help me with this, any help would be very much appreciated. Thanks Mark
Sep 13, 2012 #2 DJHunt Technical User Dec 24, 2008 287 US mHarkin said: I have a calculation field with the below calculation Click to expand... ...and just where is the code? DJ Hunt Phone: (978)2-3333 WebSite: http://www.DJHunt.US - GoldMine Premium - The Definitive Guide - One-on-One GoldMine Technical Support ( Fee Based ) http://www.DJHunt.US Upvote 0 Downvote
mHarkin said: I have a calculation field with the below calculation Click to expand... ...and just where is the code? DJ Hunt Phone: (978)2-3333 WebSite: http://www.DJHunt.US - GoldMine Premium - The Definitive Guide - One-on-One GoldMine Technical Support ( Fee Based ) http://www.DJHunt.US
Sep 13, 2012 Thread starter #3 mharkin Technical User May 9, 2012 16 GB apologies here is the calculation: Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD) Upvote 0 Downvote
apologies here is the calculation: Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD)
Sep 14, 2012 #4 DJHunt Technical User Dec 24, 2008 287 US You might have to use the iif() function. Something on the order of: iif((Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD))>0, 0, Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD)) DJ Hunt Phone: (978)2-3333 WebSite: http://www.DJHunt.US - GoldMine Premium - The Definitive Guide - One-on-One GoldMine Technical Support ( Fee Based ) http://www.DJHunt.US Upvote 0 Downvote
You might have to use the iif() function. Something on the order of: iif((Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD))>0, 0, Int((Date()-Contact2->UDCAABSDTE)*0.08/365*Contact2->UDCAABAMOU)+(Contact2->UDCAABAMOU)-(Contact2->UPAIDCLT+Contact2->UPAID2SGP+Contact2->UDCAPAYJUD)) DJ Hunt Phone: (978)2-3333 WebSite: http://www.DJHunt.US - GoldMine Premium - The Definitive Guide - One-on-One GoldMine Technical Support ( Fee Based ) http://www.DJHunt.US