fiogf49gjkf0d Thanks for the reply. I checked for the nulls which is an obvious miss on my part an still having problems.
My biggest frustration is that I can't get an error message to display. All I get is a blank page. I see the gradient image, but no text/controls/menus, etc show up on the page and no error message.
Here's my code now:
Sage.Entity.Interfaces.IOpportunity objOpp1 = BindingSource.Current as Sage.Entity.Interfaces.IOpportunity;
DateTime EstDate = new DateTime();
if (objOpp1.EstimatedClose.HasValue) { EstDate = Convert.ToDateTime(objOpp1.EstimatedClose); } else { EstDate = DateTime.Now; } DateTime ActClose = new DateTime(); ActClose = Convert.ToDateTime(objOpp1.ActualClose); if (objOpp1.ActualClose.HasValue) { ActClose = Convert.ToDateTime(objOpp1.ActualClose); } else { ActClose = DateTime.Now; } if (objOpp1.Closed == 'T') { objOpp1.GoLiveDate = tempDate.AddDays(5); } else { if (objOpp1.GoLiveDate == null || objOpp1.GoLiveDate < ActClose.AddDays(5)) { objOpp1.GoLiveDate = ActClose.AddDays(5); } }
|