Arthur Fuller
artful at rogers.com
Thu Apr 1 12:54:29 CST 2004
Here is a function that I use for this purpose. It's specific to each particular field on a form, because in my experience I seldom wanted ALL the fields to be duplicated; but rather just many of them. Note that I typically define a compiler directive called TALKON. Public Function CarryForward() Const cQuote = """" 'Thats two quotes Dim ctlCurrent As Control Set ctlCurrent = Screen.ActiveControl ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote #If TALKON = True Then Debug.Print "Current default value: " & ctlCurrent.DefaultValue Debug.Print "New default value: " & ctlCurrent.DefaultValue #End If Set ctlCurrent = Nothing End Function Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, April 01, 2004 3:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data?SOLVED We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan <stuart at lexacorp.com.pg> wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-(