Hi Guy's, i have this simple query where i am trying to update tblRoutes From tblEdit within the shipment week
So i am trying exclude 14 postcodes (if any exist in the specific week) therefore using simple method of
In the criteria of Postcodes, i have got the following
<> "Postcode1" Or <> "Postcode2" etc up to Postcode14
When I run the code, if there are postcodes within that week that i am trying to exclude, they are pulling through and adding to tblRoutes
I would have thought using the criteria that I have, it shouldn't pull them through ?

Code:
strSQL = "INSERT INTO tblRoutes ( DelTo, Town, PostCode ) " _
& "SELECT qryCheckAdded.DelTo, qryCheckAdded.Town, qryCheckAdded.PostCode " _
& "FROM qryCheckAdded;"
Set rs = CurrentDb.OpenRecordset("Select * From tblRoutes WHERE Driver Is Null")
Do Until rs.EOF
With rs
.Edit
!DelDate = Format(Now(), "dd/mm/yyyy")
.Update
.MoveNext
End With
Loop
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
Forms!frmPlanning!frmPlanningDS.Requery