4 replies
by dgearheart Accepted solution
by john.a.wills Accepted solution
if isnull (me.date1) _
then
me.X = 0
else
if isnull (me.date2) _
then
me.X = datediff(me.date1,today, whatever)
else
me.X = datediff(me.date1,me.date2,..)
endif
endif
by dgearheart Accepted solution
John.a.wills,
Thank you for your help, however when I type in the following I get an error that states, "The expression you entered contains invalid syntax. You may have entered an operand without an operator." I think my problem is that I do not have the proper punctuation.
Rest days: if is null [Rest Duty Start Date]_ then Rest days=0 else if isnull [Rest Duty End Date] then Rest days= datediff([Rest Duty Start Date],today) else [Rest Duty Start Date],[Rest Duty End Date] end if
Please help, I am not sure the proper code with proper punctuation.
Thanks
by john.a.wills Accepted solution
This discussion is closed to new replies.
Trending Software posts
Sort by Trending