B
Bob Quintal
(e-mail address removed) wrote in
seem to recall an issue with the default value that requires a
string even for numeric data.
2) Docmd.Save allows optional parameters for the object type,
object name. Specify them.
two things to try: 1) surround the date with double quotes. II'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?
seem to recall an issue with the default value that requires a
string even for numeric data.
2) Docmd.Save allows optional parameters for the object type,
object name. Specify them.