Subtract date
Hi,
I'm having a problem subtracting a date. I have a weekending date and then the user selects if the week is 5,6, or 7 days long. I'm using the dateadd function to subtract the selected days from the weekending date. For some dates it works, but for others it is one day off. Any ideas why this may be happenning? This is what I have set up:
iRange = Me.cboDays.Value
Me.txtStop = Me.txtStop1 & "/" & Me.txtStop2 & "/" & Me.txtStop3
Me.txtStart = DateAdd("d", (-iRange), Me.txtStop)
Thanks,
Dave
|