Good Morning,
I have a form with a text box on it. The text box is assigned a default value manually when I design the form.
I want the default value to change to the last value entered into it. So I have some code that looks like this, where the variable name contains the value that I want the default value property changed to.
Forms!Import_Time_Data!.mailbox_name.SetFocus
Forms!Import_Time_Data!.mailbox_name.DefaultValue = "=" & quote & name & quote
DoCmd.Save acForm, "Import_Time_Data"
The problem is that the changes are not saved. I can look at the properties window and see that the value for the DefaultValue property has changed properly. However, the changes are not saved when the form is closed.
Does any one have any solutions?
Thanks in advance for any assistance.
I have a form with a text box on it. The text box is assigned a default value manually when I design the form.
I want the default value to change to the last value entered into it. So I have some code that looks like this, where the variable name contains the value that I want the default value property changed to.
Forms!Import_Time_Data!.mailbox_name.SetFocus
Forms!Import_Time_Data!.mailbox_name.DefaultValue = "=" & quote & name & quote
DoCmd.Save acForm, "Import_Time_Data"
The problem is that the changes are not saved. I can look at the properties window and see that the value for the DefaultValue property has changed properly. However, the changes are not saved when the form is closed.
Does any one have any solutions?
Thanks in advance for any assistance.