I am using Access 2007. I have a form with fields that I want to copy to a subform. I nave an ADD button that can sopy the data to the subform, so the subform is acting as a clipboard. I can get it to add a row, but not add a new row to subform table after doing one entry into the subform.
Here is some code I have tried:
It doesn't like the .Update with this one.
It copies one record here but doesn't let you add more than one record into the subform at a time.
Can there be a way to have the Add button create rows each time it is clicked with updates of textbox entries data?
Here is some code I have tried:
Code:
With Me.GiftListSubform
.Form.SetFocus
.Form![GiftQuantity].SetFocus
RunCommand acCmdRecordsGoToNew
.Form!GiftQuantity = Me.GiftQuantity
.Form!GiftItemReceived = Me.GiftItemReceived
.Form!TitleRank = Me.TitleRank
.Form!FirstName = Me.FirstName
.Form!LastName = Me.LastName
.Form!GiftDate = Me.GiftDate
.Update
End With
Code:
Forms![GiftRecipientForm]![GiftListSubform]!GiftQuantity = Me.GiftQuantity
Forms![GiftRecipientForm]![GiftListSubform]!GiftItemReceived = Me.GiftItemReceived
Forms![GiftRecipientForm]![GiftListSubform]!TitleRank = Me.TitleRank
Forms![GiftRecipientForm]![GiftListSubform]!FirstName = Me.FirstName
Forms![GiftRecipientForm]![GiftListSubform]!LastName = Me.LastName
Forms![GiftRecipientForm]![GiftListSubform]!GiftDate = Me.GiftDate
Can there be a way to have the Add button create rows each time it is clicked with updates of textbox entries data?
Comment