Andy Roberts said:
Dev Ashish explains the process here of what I want to do perfectly here:
http://www.mvps.org/access/forms/frm0012.htm
However it only seems to work with one control. What do I need to do if
there are more than one control I wish to carry over?
The code is:
'******** Code Start **********
const cQuote="""" 'Thats two quotes
me!Control.DefaultValue = cQuote & me!Control.Value & cQuote
'******** Code End **********
As you no doubt figured out, you change the "Control" in the sample to the
name of your Control. If you put the code in the Form's AfterUpdate event,
you just add another similar line for each Control whose value you want to
carry to the next new Record.
If you only want to carry forward a single Control's value, when that
control is changed, you could put the code in the AfterUpdate of that
Control. I see no advantage to this over putting the code in the Form's
AfterUpdate.
Once you do enter save a value in the DefaultValue property, that default
will apply until changed by the user entering and updating the Control again
(I believe in some versions prior to Access 2003, the property setting
applied only as long as the Form was open, but in Access 2003, the Default
Value set in Form view will persist across closing and reopening the Form
and across closing and reopening the Database).
Larry Linson
Microsoft Access MVP