B burrina Registered User. Local time Today, 06:57 Joined May 10, 2014 Messages 972 Jun 9, 2015 #1 Here is my syntax,it works but when there is no difference, I need it to show 0 PHP: VacDays: (DateDiff("d",[VacationDteFrom],[VacationDteTo]))
Here is my syntax,it works but when there is no difference, I need it to show 0 PHP: VacDays: (DateDiff("d",[VacationDteFrom],[VacationDteTo]))
Ranman256 Well-known member Local time Today, 07:57 Joined Apr 9, 2015 Messages 4,348 Jun 9, 2015 #2 if the days are the same you WILL get zero. Null wont give an answer.
B burrina Registered User. Local time Today, 06:57 Joined May 10, 2014 Messages 972 Jun 9, 2015 #3 No, the posted code above does not return anything! hence the post!
V vbaInet AWF VIP Local time Today, 12:57 Joined Jan 22, 2010 Messages 26,328 Jun 9, 2015 #4 Remember your Nz() burrina?
B burrina Registered User. Local time Today, 06:57 Joined May 10, 2014 Messages 972 Jun 9, 2015 #5 This syntax: Results in #Error PHP: VacDays: Nz((DateDiff("d",[VacationDteFrom],[VacationDteTo])))
V vbaInet AWF VIP Local time Today, 12:57 Joined Jan 22, 2010 Messages 26,328 Jun 9, 2015 #6 This: Code: VacDays: Nz[COLOR="red"]([/COLOR]DateDiff("d",[VacationDteFrom],[VacationDteTo])[COLOR="Red"], 0)[/COLOR] Sorry Ranman256, I thought you were offline!
This: Code: VacDays: Nz[COLOR="red"]([/COLOR]DateDiff("d",[VacationDteFrom],[VacationDteTo])[COLOR="Red"], 0)[/COLOR] Sorry Ranman256, I thought you were offline!
B burrina Registered User. Local time Today, 06:57 Joined May 10, 2014 Messages 972 Jun 9, 2015 #7 Was having a Code moment.
V vbaInet AWF VIP Local time Today, 12:57 Joined Jan 22, 2010 Messages 26,328 Jun 9, 2015 #8 You certainly were because I know that you know this stuff
B burrina Registered User. Local time Today, 06:57 Joined May 10, 2014 Messages 972 Jun 9, 2015 #9 True, but it sucks to get old. Plus with my condition it puts a whooping on my thinking. Poor,Pitiful Me ! Guess I will go off and cry in my Beer !
True, but it sucks to get old. Plus with my condition it puts a whooping on my thinking. Poor,Pitiful Me ! Guess I will go off and cry in my Beer !
V vbaInet AWF VIP Local time Today, 12:57 Joined Jan 22, 2010 Messages 26,328 Jun 9, 2015 #10 or whiskey