Hello there!
I started using Access last week at work and am starting to get to grips with it. I have a lot of experience with PHP/mySQL setups but never really used Access or VBA before.
I've built a form to export a set of queries to excel, based upon the date input, while excluding a certain search keyword on the form, and all is working well.
It scans lists of keywords used on Google to find a client's website and reports the traffic generated as a result. We are excluding the client's company name so we only report traffic for generic terms eg 'digital camera' rather than '*canon*'
This is working fine, but we have a client that has multiple company names we would like to exclude. In mySQL you can use a query like
"WHERE keyword NOT LIKE '%canon%|%sony%' ", where the pipe (|) character represents 'OR', so it will exclude searches that include 'canon' or 'sony'. This doesn't seem to work in Access.
Is there an equivalent character in Access SQL, or could I use a function to replace the pipe character with '" AND keyword NOT LIKE "' dynamically in the query string? If so, any hints on how I might do this?
Many thanks!
Jonny
I started using Access last week at work and am starting to get to grips with it. I have a lot of experience with PHP/mySQL setups but never really used Access or VBA before.
I've built a form to export a set of queries to excel, based upon the date input, while excluding a certain search keyword on the form, and all is working well.
It scans lists of keywords used on Google to find a client's website and reports the traffic generated as a result. We are excluding the client's company name so we only report traffic for generic terms eg 'digital camera' rather than '*canon*'
This is working fine, but we have a client that has multiple company names we would like to exclude. In mySQL you can use a query like
"WHERE keyword NOT LIKE '%canon%|%sony%' ", where the pipe (|) character represents 'OR', so it will exclude searches that include 'canon' or 'sony'. This doesn't seem to work in Access.
Is there an equivalent character in Access SQL, or could I use a function to replace the pipe character with '" AND keyword NOT LIKE "' dynamically in the query string? If so, any hints on how I might do this?
Many thanks!
Jonny