D
Dvanwig
In one table I have several records. Each record has a field containing this
year's price (CurrentPrice) and next year's price (NewPrice). On January
1st, I need to copy the data in the NewPrice field to replace the data in the
OldPrice field and then zero the data in the NewPrice field pending a manual
calculation and data entry of new prices for the following year. I would
like to make this switch for all records in the table at one time with one
click of a button (btnChangePrices). I'm familiar with the Me![OldPrice] =
Me![NewPrice] concept but it only works for the particular record being
displayed on the form or on a continuous form for the record that has the
focus. Can one of you help with the looping logic code?
year's price (CurrentPrice) and next year's price (NewPrice). On January
1st, I need to copy the data in the NewPrice field to replace the data in the
OldPrice field and then zero the data in the NewPrice field pending a manual
calculation and data entry of new prices for the following year. I would
like to make this switch for all records in the table at one time with one
click of a button (btnChangePrices). I'm familiar with the Me![OldPrice] =
Me![NewPrice] concept but it only works for the particular record being
displayed on the form or on a continuous form for the record that has the
focus. Can one of you help with the looping logic code?