Hi All,
I have a little problem with date manipulation.
Basically I have a button on a form that is called [TODAY], if the user clicks on this button then only the records for today are shown on the form (using the filter option in code). However, what I would like to do is have a couple of extra buttons on the form to allow the user to select [yesterday] or [tomorrow], therfore basically adding 1 day or subtracting one day to todays date and then performing the filter operation.
The problem I have is how do you increment(or decrement) a date. I have searched through the TEK-TIPS Archive but could find nothing that would help.
If anyone could throw any light on this, I would be really grateful.
Cheers
ModeX
I have a little problem with date manipulation.
Basically I have a button on a form that is called [TODAY], if the user clicks on this button then only the records for today are shown on the form (using the filter option in code). However, what I would like to do is have a couple of extra buttons on the form to allow the user to select [yesterday] or [tomorrow], therfore basically adding 1 day or subtracting one day to todays date and then performing the filter operation.
The problem I have is how do you increment(or decrement) a date. I have searched through the TEK-TIPS Archive but could find nothing that would help.
If anyone could throw any light on this, I would be really grateful.
Cheers
ModeX