Hi! I have 2 lists with urls. I want to delete all records from a table (link) if link.url like list1.column(0)and not like list2.column(0).
so, to delete all that are in the first list but not in the second list.
I have this:
strsql = "delete * from dbo_link where dbo_link.url like '*" & CStr(Me.lstExclude.Column(0)) & "*'and not like '*" & CStr(Me.lstInclude.Column(0)) & "*';"
DoCmd.RunSQL strsql
Error: syntax error. missing operator in query expression.
the value from Watches (this is the case when the link is in both lists) is this:
"delete * from dbo_link where dbo_link.url like '* and not like '*
do you have any sugestions?!
so, to delete all that are in the first list but not in the second list.
I have this:
strsql = "delete * from dbo_link where dbo_link.url like '*" & CStr(Me.lstExclude.Column(0)) & "*'and not like '*" & CStr(Me.lstInclude.Column(0)) & "*';"
DoCmd.RunSQL strsql
Error: syntax error. missing operator in query expression.
the value from Watches (this is the case when the link is in both lists) is this:
"delete * from dbo_link where dbo_link.url like '* and not like '*
do you have any sugestions?!