S
Sharon
I am using Access 2003 and I have a "to do" form where I want to have a
command button named "Repeat". I want this to repeat the entire record but,
in place of the Due_By date currently in the field, I want it to add seven
days to that date. Not quite sure how to do that. Any help is appreciated.
Thanks.
Private Sub cmdbtnRepeat_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
DoCmd.GoToRecord , , acLast
Due_By = DateAdd("dd", 7, [Due_By])
End Sub
command button named "Repeat". I want this to repeat the entire record but,
in place of the Due_By date currently in the field, I want it to add seven
days to that date. Not quite sure how to do that. Any help is appreciated.
Thanks.
Private Sub cmdbtnRepeat_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
DoCmd.GoToRecord , , acLast
Due_By = DateAdd("dd", 7, [Due_By])
End Sub