Many thanks Mike you pointed me to the right direction with a minor amendments to your code, this now work correctly
INSERT INTO tblLineDetails ( InvoiceID, Quantities, SellingPrice, ProductName )
SELECT DMax("InvoiceID","tblInvoiceHeader"), tblLineDetails.Quantities...