If we are discussing this code:
http://allenbrowne.com/ser-24.html
you can use it in the subform also.
The subform has its own BeforeInsert event.
You will need use that as well.
That is, follow setps 5 to 10 for the subform itself.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"New TO Access" <(E-Mail Removed)> wrote in message
news:390C1936-9BD5-4EF8-8EA0-(E-Mail Removed)...
>I found this great code for carrying over records from one form to another
> (from Allen Browne). This has worked really well until I applied it to a
> form
> with a sub-form. When I run it the sub-form does not appear in the new
> record. Would appreciate some assistance with this.