Hello,
I'm trying to use following query to insert records in the same table with different ClassID but it's giving error similar to "xx records fail due to Validation rule". Can someone please see where I'm doing wrong?
Thanking you in anticipation.
Abdullah
I'm trying to use following query to insert records in the same table with different ClassID but it's giving error similar to "xx records fail due to Validation rule". Can someone please see where I'm doing wrong?
SQL:
INSERT INTO tblStudentClass ( ClassID, StudentID )
SELECT [Forms]![frmPromoteToNewClass]![ClassID] AS expClassID, tblStudentClass.StudentID
FROM tblStudentClass
WHERE (((tblStudentClass.ClassID)=[Forms]![frmClasses]![ClassID]));
Thanking you in anticipation.
Abdullah