Insert values

I have Purchline and selectoptinalitem forms . I want to select some records in selectoptinalitems forms and records are to be inserted in purchline … can I do that

you can do that if you have a related field between those table. what was it? if you have not any related field, then you must create a field in the new table as a foreign key