Hello,
please can you help me ?
i need insert values from table tbl_parts (column 1,2,3...) to tbl_materials - in tbl_materials is primary key. the values will be inserted if form is on load
1 Table tbl_materials
columns
MainID, MatID, PN, Desc, Suplier, quantity
2 Table tbl_parts(lines are filled)
MatID, PN, Desc, Suplier, quantity
i have this code, but i dont know define primary key, and access say error Run-time 3075
DoCmd.RunSQL "INSERT INTO tbl_materials (MatID, PN) SELECT (MatID, PN) FROM tbl_parts"
i need insert to field "quantity" for each record another values
thank you for help
if you understand something to write
sorry for my English