Beste Tweakers,
Op dit moment ben ik bezig om met ASP en een Access database een intranet te bouwen.
Alles ging goed, totdat ik een query wilde bouwen die het mogelijk maakte om de notulen van een bepaalde vestiging op te vragen en daarbij de naam van de vestiging te displayen.
Het gaat om de volgende query :
SELECT minutes_id, minutes_location, minutes_date, loc_id
FROM minutes INNER JOIN location
ON (minutes_location = loc_id)
WHERE minutes_1stpar LIKE '%minsearch%' OR muntes_2ndpar LIKE '%minsearch%' OR minutes_3rdpar LIKE '%minsearch%'
ORDER BY minutes_id
Hierbij krijg ik dus de melding : Join Expression Not Supported. Ik gebruik Access 97.
Possible causes:
·Your SQL statement contains multiple joins in which the results of the query can differ, depending on the order in which the joins are performed. You may want to create a separate query to perform the first join, and then include that query in your SQL statement.
·The ON statement in your JOIN operation is incomplete or contains too many tables. You may want to put your ON expression in a WHERE clause.
Wat is nou precies de fout ? Wat moet ik aanpassen ?
Op dit moment ben ik bezig om met ASP en een Access database een intranet te bouwen.
Alles ging goed, totdat ik een query wilde bouwen die het mogelijk maakte om de notulen van een bepaalde vestiging op te vragen en daarbij de naam van de vestiging te displayen.
Het gaat om de volgende query :
SELECT minutes_id, minutes_location, minutes_date, loc_id
FROM minutes INNER JOIN location
ON (minutes_location = loc_id)
WHERE minutes_1stpar LIKE '%minsearch%' OR muntes_2ndpar LIKE '%minsearch%' OR minutes_3rdpar LIKE '%minsearch%'
ORDER BY minutes_id
Hierbij krijg ik dus de melding : Join Expression Not Supported. Ik gebruik Access 97.
Possible causes:
·Your SQL statement contains multiple joins in which the results of the query can differ, depending on the order in which the joins are performed. You may want to create a separate query to perform the first join, and then include that query in your SQL statement.
·The ON statement in your JOIN operation is incomplete or contains too many tables. You may want to put your ON expression in a WHERE clause.
Wat is nou precies de fout ? Wat moet ik aanpassen ?