This is a simple one but for some reason I don't remember how to do this...
I have an query that makes a table but I want it to make one record for each quantity of
PC_frm_tbl.QtyLeft so that if the value of PC_frm_tbl.QtyLeft = 12 then I want the qry to create 12 new revords in the table
Thanks
I have an query that makes a table but I want it to make one record for each quantity of
PC_frm_tbl.QtyLeft so that if the value of PC_frm_tbl.QtyLeft = 12 then I want the qry to create 12 new revords in the table
Thanks
Code:
SELECT PC_frm_tbl.ID, First(PC_frm_tbl.Part_No) AS FirstOfPart_No, PC_frm_tbl.Sys_PC, PC_frm_tbl.type, PC_frm_tbl.[Ordered Quantity], PC_frm_tbl.[Line Number], PC_frm_tbl.QtyLeft INTO Build_tbl
FROM PC_frm_tbl
GROUP BY PC_frm_tbl.ID, PC_frm_tbl.Sys_PC, PC_frm_tbl.type, PC_frm_tbl.[Ordered Quantity], PC_frm_tbl.[Line Number], PC_frm_tbl.QtyLeft, PC_frm_tbl.Checked
HAVING (((PC_frm_tbl.Checked)=True));