Hello! I am trying to copy a subform record set from one record to the next record. The data in the main table is copied over using this method;
Can I integrate the copying of the subform data to the new record with this or do I need something different, and if so what?
It's a many to many relationship and I've tried adding the following line to the code:
v5=Me![Endorsements Umb XS].[UmbID]
same=v5
and it works but it only copies the first record out of the set.
Any help appreciated.
Thanks,
LBinGA:banghead:
Code:
Dim v1 As Variant
Dim v2 As Variant
Dim v3 As Variant
Dim v4 As Variant
v1 = Me![Today's Date].Value
v2 = Me!Insured.Value
v3 = Me!City.Value
v4 = Me!State.Value
RunCommand acCmdRecordsGoToNew
Me![Today's Date].Value = DateValue(Now)
Me!Insured = v2
Me!City = v3
Me!State = v4
End Sub
It's a many to many relationship and I've tried adding the following line to the code:
v5=Me![Endorsements Umb XS].[UmbID]
same=v5
and it works but it only copies the first record out of the set.
Any help appreciated.
Thanks,
LBinGA:banghead: