check datetime field null value or blank value
Posted: Fri Aug 20, 2010 7:29 am
Hi
FinalDuration field datatype is datetime in access database. In table few rows are blank without data. I am using the below formula to calculate the field value.
Hour(DownloadTourMaster.FinalDuration) * 3600 + Minute(DownloadTourMaster.FinalDuration) * 60+ Second(DownloadTourMaster.FinalDuration)
but in database table few rows are blank without data. so its displaying the runtime error
Null referenece as Object reference not set to an instance of an object.
So I need to write a check condition so that if field is blank , its not calculate the field value.
Please help me.
Thanks
Vikas
FinalDuration field datatype is datetime in access database. In table few rows are blank without data. I am using the below formula to calculate the field value.
Hour(DownloadTourMaster.FinalDuration) * 3600 + Minute(DownloadTourMaster.FinalDuration) * 60+ Second(DownloadTourMaster.FinalDuration)
but in database table few rows are blank without data. so its displaying the runtime error
Null referenece as Object reference not set to an instance of an object.
So I need to write a check condition so that if field is blank , its not calculate the field value.
Please help me.
Thanks
Vikas