Hi
I got a table called tblAccessRights where I want to delete data and then I have a table called tblTriSecActis where I have the users who I want to keep in the table tblAccessRights. the values tblAccessRights.Userid and tblTriSecActis.UserName are the values to be compared.
I made this statement, but that one does not work :
strSQL = "DELETE tblAccessRights.*"
strSQL = strSQL & " from tblAccessRights inner join tblTriSecActis "
strSQL = strSQL & " ON tblAccessRights.Userid <> tblTriSecActis.UserName"
strSQL = strSQL & " WHERE tblAccessRights.ToolTask = TRUE"
I hope somebody can spot where it goes wrong ?
I got a table called tblAccessRights where I want to delete data and then I have a table called tblTriSecActis where I have the users who I want to keep in the table tblAccessRights. the values tblAccessRights.Userid and tblTriSecActis.UserName are the values to be compared.
I made this statement, but that one does not work :
strSQL = "DELETE tblAccessRights.*"
strSQL = strSQL & " from tblAccessRights inner join tblTriSecActis "
strSQL = strSQL & " ON tblAccessRights.Userid <> tblTriSecActis.UserName"
strSQL = strSQL & " WHERE tblAccessRights.ToolTask = TRUE"
I hope somebody can spot where it goes wrong ?