CT Witter
MrExcel MVP
- Joined
- Jul 7, 2002
- Messages
- 1,212
I think I know the answer but I will pose it anyway. I want to have a textbox that I can manipulate the default value, and then save, so when the form reopens it uses the new default value. The default value will be a number.
For example, I open the form with default value of 5. Then change some data, new default is 3. I need to save this so when the form reopens, the default is 3.
here is what I'm currently using but it doesn't seem to work.
For example, I open the form with default value of 5. Then change some data, new default is 3. I need to save this so when the form reopens, the default is 3.
here is what I'm currently using but it doesn't seem to work.
Code:
Dim recounter As Integer
recounter = Me.RecalcCounter.Defaultvalue
recounter = recounter - 1
Me.RecalcCounter.Defaultvalue = recounter
DoCmd.Save acForm, Me.name