How can I programmatically change the value of a control default?
Thanks!
Sam
Change it when? To what?
I'll guess that this is what you mean.
For each control on your form that you wish to carry over to the next
new record .....
If the field is NOT a Date datatype, code that control's AfterUpdate
event:
Me![ControlName].DefaultValue = """" & Me![ControlName] & """"
If the field is a Date datatype, then code that control's AfterUpdate
event:
Me![DateField].DefaultValue = "#" & Me![DateField] & "#"
You'll have to enter the value just once per session.
It will remain the same for each new record until changed.