I have a data input form for transactions. The form has a button to create additional transactions for the same customer. Basic information would be the same on that next transaction (for example, account office and approval date).
That button saves the current record and creates a new one. How can I carry forward the selected fields to that new record? I tried the code below, but it is not working. This is in the AfterUpdate event.
DoCmd.RunCommand acCmdSaveRecord
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = “CarryForward” Then
ctl.DefaultValue = “””” & ctl.Value & “”””
End If
Next ctl
I entered CarryForward into the tag property for the fields I want carried forward.
Behind the command button to create the new record, it just has DoCmd.GoToRecord , , acNewRec
Thank you for any suggestions.
Nancy