Dear
This is the SQL:
Code:
INSERT INTO TblQCertDetails ( InspectionDate, AELength, AIDSpigot, AIDSocket, AODSpigot, AODSocket, AWTSpigot, ASqEnds, ADvStraightness, ACStrength, AWTightness, SSqEnds, SDvStraightness, SCStrength, SWTightness )SELECT QInspToQCert.InspectionDate, QInspToQCert.AELength, QInspToQCert.AIDSpigot, QInspToQCert.AIDSocket, QInspToQCert.AODSpigot, QInspToQCert.AODSocket, QInspToQCert.AWTSpigot, QInspToQCert.ASqEnds, QInspToQCert.ADvStraightness, QInspToQCert.ACStrength, QInspToQCert.AWTightness, QInspToQCert.SSqEnds, QInspToQCert.SDvStraightness, QInspToQCert.SCStrength, QInspToQCert.SWTightness
FROM QInspToQCert
WHERE (((QInspToQCert.TblQualityInspection.Product)=[Forms]![QCertDetails]![Product]) AND ((QInspToQCert.PDate)=[Forms]![QCertDetails]![PDate]) AND ((QInspToQCert.ProductionStatus)="Regular"));
There is a button on form "QCertDetails" to run the append query to copy the above fields into the "TblQCertDetails" but in the next sequence where as "Product" and "Pdate" already in previous table record since it is entered at form "QCertDetails" which is used as criteria for selection of record.