Just wondering if the following is possible and if so how to do it.
I have a form that has multiple fields that have default values. These values will be fixed for a quarter and then will change. Currently the users contact me to change the defaults every quarter in the design view of the form so the new defaults show for the quarter.
I'd like to write code that if the user changes the value in these fields to something other than the default value that the default value for the fields will now be the new value. Thus when the user opens the form the next time the defaults will be correct until the start of the next quarter.
Essentially something like below is what I want to do, but the following will not actually update the default values, they return to the previous defaults when you open the form the next time.
if me!Field1 <> me!Field1.defaultvalue then
me!Field1.defaultvalue = me!Field1
end if
I know that I could do this by using a table to store the values which I then read in to the fields as the defaults when the form opens, changes to the values will update the table and thus the next time the values will be the new ones; but I'd prefer to have a solution that does not require a table storing the latest values.
I have a form that has multiple fields that have default values. These values will be fixed for a quarter and then will change. Currently the users contact me to change the defaults every quarter in the design view of the form so the new defaults show for the quarter.
I'd like to write code that if the user changes the value in these fields to something other than the default value that the default value for the fields will now be the new value. Thus when the user opens the form the next time the defaults will be correct until the start of the next quarter.
Essentially something like below is what I want to do, but the following will not actually update the default values, they return to the previous defaults when you open the form the next time.
if me!Field1 <> me!Field1.defaultvalue then
me!Field1.defaultvalue = me!Field1
end if
I know that I could do this by using a table to store the values which I then read in to the fields as the defaults when the form opens, changes to the values will update the table and thus the next time the values will be the new ones; but I'd prefer to have a solution that does not require a table storing the latest values.