In AC97, how do you update or replace data in a table for a specified date range? I have
tblMWHLongRangeRev
MWHDate (Indexed, no duplicates)
MWHUnit1ProjRev
MWHUnit2ProjRev
and frmMWHLongRangeRev that has
tbxStartDate
tbxEndDate
tbxMWHUnit1
tbxMWHUnit2
cmdAddRecord button.
When the cmdAddRecord button is clicked, I'd like the values in tbxMWHUnit1 and tbxMWHUnit2 to replace the existing values in MWHUnit1ProjRev and MWHUnit2ProjRev for the dates from tbxStartDate to tbxEndDate.
For example before update
tblMWHLongRangeRev
10/27/07 65 34
10/28/07 65 34
10/29/07 65 34
10/30/07 65 34
After update:
When tbxStartDate = 10/28/07
tbxEndDate = 10/29/07
tbxMWHUnit1 = 50
tbxMWHUnit2 = 80
tblMWHLongRangeRev
10/27/07 65 34
10/28/07 50 80
10/29/07 50 80
10/30/07 65 34
Thanks,
Brian
tblMWHLongRangeRev
MWHDate (Indexed, no duplicates)
MWHUnit1ProjRev
MWHUnit2ProjRev
and frmMWHLongRangeRev that has
tbxStartDate
tbxEndDate
tbxMWHUnit1
tbxMWHUnit2
cmdAddRecord button.
When the cmdAddRecord button is clicked, I'd like the values in tbxMWHUnit1 and tbxMWHUnit2 to replace the existing values in MWHUnit1ProjRev and MWHUnit2ProjRev for the dates from tbxStartDate to tbxEndDate.
For example before update
tblMWHLongRangeRev
10/27/07 65 34
10/28/07 65 34
10/29/07 65 34
10/30/07 65 34
After update:
When tbxStartDate = 10/28/07
tbxEndDate = 10/29/07
tbxMWHUnit1 = 50
tbxMWHUnit2 = 80
tblMWHLongRangeRev
10/27/07 65 34
10/28/07 50 80
10/29/07 50 80
10/30/07 65 34
Thanks,
Brian