Question
ASP/VB
Dear All,
well, it used to work. But no longer. Since upgrading to DW8, all hell has
broken loose with the SQL.
This used to search multiple fields. For example, it used to find 'Smith'
(or Smithson) in the name1 field using the variable MMFreet, but no longer.
On the other hand I've changed it so often in the last few hours I no longer
know which way is up.
Also, why does MMFreet have to have quote marks, but only for the second and
third iterations. Any clues?
Craig
SELECT subID, org, LEFT(describe,86) AS intro, name1, addrs, town, cat,
catsub
FROM subs
WHERE ((cat = MMColParam AND catsub = MMSub) OR (org LIKE MMLtr%) OR (org
LIKE %MMFreet% OR name1 LIKE '%MMFreet%' OR town LIKE '%MMFreet%') AND
show=-1)
ORDER BY org
well, it used to work. But no longer. Since upgrading to DW8, all hell has
broken loose with the SQL.
This used to search multiple fields. For example, it used to find 'Smith'
(or Smithson) in the name1 field using the variable MMFreet, but no longer.
On the other hand I've changed it so often in the last few hours I no longer
know which way is up.
Also, why does MMFreet have to have quote marks, but only for the second and
third iterations. Any clues?
Craig
SELECT subID, org, LEFT(describe,86) AS intro, name1, addrs, town, cat,
catsub
FROM subs
WHERE ((cat = MMColParam AND catsub = MMSub) OR (org LIKE MMLtr%) OR (org
LIKE %MMFreet% OR name1 LIKE '%MMFreet%' OR town LIKE '%MMFreet%') AND
show=-1)
ORDER BY org
