I created a practice set of tables that simulate what I want. This is the UNION code I found on the Internet and used:
Private Sub Command0_Click()
Dim sql As String, sTable As String, oTD As TableDef
sql = "SELECT * FROM MergeTable UNION SELECT * FROM MainTable"
If MsgBox("Store unique records in a Table?", vbYesNo) = vbYes Then
sTable = InputBox("Which table name?", , "tblMerged")
For Each oTD In CurrentDb.TableDefs
If oTD.Name = sTable Then sTable = sTable & "1"
Next oTD
sql = "SELECT * INTO " & sTable & " FROM (" & sql & ")"
DoCmd.RunSQL sql
End If
End Sub
Assuming I'm understanding your question correctly, you want to remove
any student from tblCurrentStudents who are not in tblNewStudents?
Yep, that's exactly what I need. I'm going to try the IN command. I'll let you know how it goes.