D
dbl
Hi I am using the following to duplicate certain fields in a new record
which works fine.
When I add the new record all the fields I have listed are copied. I am
using the on Click event to trigger the code but how do I stop it?
Every time I add a new record I get the same date in my fields.
Const cQuote = """"
Me.DriverFirstName.DefaultValue = cQuote & Me.DriverFirstName.Value &
cQuote
Me.DriverLastName.DefaultValue = cQuote & Me.DriverLastName.Value &
cQuote
Me.RegistrationNumber.DefaultValue = cQuote &
Me.RegistrationNumber.Value & cQuote
The second problem I have when I add a new record using the above the
following code over writes the Registration Number
DoCmd.GoToRecord , , A_NEWREC
Me.RegistrationNumber = "XXXXXXX"
Any help would be very much appreciated.
Thanks Bob
which works fine.
When I add the new record all the fields I have listed are copied. I am
using the on Click event to trigger the code but how do I stop it?
Every time I add a new record I get the same date in my fields.
Const cQuote = """"
Me.DriverFirstName.DefaultValue = cQuote & Me.DriverFirstName.Value &
cQuote
Me.DriverLastName.DefaultValue = cQuote & Me.DriverLastName.Value &
cQuote
Me.RegistrationNumber.DefaultValue = cQuote &
Me.RegistrationNumber.Value & cQuote
The second problem I have when I add a new record using the above the
following code over writes the Registration Number
DoCmd.GoToRecord , , A_NEWREC
Me.RegistrationNumber = "XXXXXXX"
Any help would be very much appreciated.
Thanks Bob