Vulcan1500
Registered User.
- Local time
- Today, 04:39
- Joined
- Nov 13, 2007
- Messages
- 143
I have 2 forms and both have a subform. I want to copy the on into the other. The main form is done, but the subform is a problem for me. The problem is that each record of the first sub is copied into the first record of the second. I'm not able to force it to go to the next. This must be done just before rs.MoveNext, but I do not know how. You help is much appreciated.
The code I'm using is:
The code I'm using is:
Code:
Dim rs As DAO.Recordset
Set rs = Forms!frmMainFirst!frmSubFirstl.Form.RecordsetClone
rs.MoveFirst
Do Until rs.EOF
Forms!frmMainSecond!frmSubSecond.Form.Opdracht = rs!Opdracht
Forms!frmMainSecond!frmSubSecond.Form.Prijs = rs!Prijs
Forms!frmMainSecond!frmSubSecond.Form.Aantal = rs!Aantal
Forms!frmMainSecond!frmSubSecond.Form.fkEenheid = rs!fkEenheid
Forms!frmMainSecond!frmSubSecond.Form.Eenheidsprijs = rs!Eenheidsprijs
Forms!frmMainSecond!frmSubSecond.Form.fkDetailBTW = rs!fkDetailBTW
rs.MoveNext
Loop