D DSmith Mar 22, 2005 #1 Is it possible to make whatever is inputted the default value of a field until a different value is inputted? Thanks in advance!
Is it possible to make whatever is inputted the default value of a field until a different value is inputted? Thanks in advance!
J John Vinson Mar 22, 2005 #2 Is it possible to make whatever is inputted the default value of a field until a different value is inputted? Thanks in advance! Click to expand... Yes; use the textbox's AfterUpdate event: Private Sub textboxname_AfterUpdate() Me!textboxname.DefaultValue = Chr(34) & Me!textboxname & Chr(34) End Sub The Chr(34) is the " quote character; the default value is a string property regardless of the field's datatype. John W. Vinson[MVP]
Is it possible to make whatever is inputted the default value of a field until a different value is inputted? Thanks in advance! Click to expand... Yes; use the textbox's AfterUpdate event: Private Sub textboxname_AfterUpdate() Me!textboxname.DefaultValue = Chr(34) & Me!textboxname & Chr(34) End Sub The Chr(34) is the " quote character; the default value is a string property regardless of the field's datatype. John W. Vinson[MVP]
D DSmith Mar 22, 2005 #3 Works great, thanks so much! John Vinson said: Yes; use the textbox's AfterUpdate event: Private Sub textboxname_AfterUpdate() Me!textboxname.DefaultValue = Chr(34) & Me!textboxname & Chr(34) End Sub The Chr(34) is the " quote character; the default value is a string property regardless of the field's datatype. John W. Vinson[MVP] Click to expand...
Works great, thanks so much! John Vinson said: Yes; use the textbox's AfterUpdate event: Private Sub textboxname_AfterUpdate() Me!textboxname.DefaultValue = Chr(34) & Me!textboxname & Chr(34) End Sub The Chr(34) is the " quote character; the default value is a string property regardless of the field's datatype. John W. Vinson[MVP] Click to expand...
D DSmith Mar 23, 2005 #4 I do have a problem--it only works on the current record and not for the whole table. I need for it to work on everyone's record. So I guess I need to change from AfterUpdate to ?
I do have a problem--it only works on the current record and not for the whole table. I need for it to work on everyone's record. So I guess I need to change from AfterUpdate to ?