inability to change unbount textbox default value programmatically
- From: james.stenzel@xxxxxxxxx
- Date: Tue, 31 Jul 2007 06:30:34 -0700
I'd like to be able to make the current value of a textbox on a form
the default value. Using the following code:
Debug.Print "orig", Me.tbxYear.DefaultValue
Me.tbxYear.DefaultValue = Me.tbxYear.Value
DoCmd.Save
Debug.Print "new", Me.tbxYear.DefaultValue
I am able to apparently change the default value... that is, the
default value change shows up in the immediate window, and after the
code has run, I can still print the control defaultvalue property in
the immediate window... (still changed), but when I close and reopen
the form, the default value has reverted to it's original value.
I CAN effect a change by changing the default value in the properties
dialog box. Why can't I do this programmatically?
.
- Follow-Ups:
- Re: inability to change unbount textbox default value programmatically
- From: Marshall Barton
- Re: inability to change unbount textbox default value programmatically
- Prev by Date: Re: =Now()
- Next by Date: Custom Toolbar Button
- Previous by thread: Re: =Now()
- Next by thread: Re: inability to change unbount textbox default value programmatically
- Index(es):
Relevant Pages
|