I'm trying to build a site that allows people to search for photos. There are 3 tables which are:
Names
photos
link
This allows for multiple names to be linked to a single photo.
The problem is that when I join the tables instead of getting 1 picture with, for example, 2 names I get the same picture twice with different names each time.
I have tried using the 'DISTINCT' within the SQL statement but that doesn't work. If I try and use a filter on the recordset I get the following error:
ADODB.Recordset.1 error '80004005'
SQLState: 42000
Native Error Code: 1064
[TCX][MyODBC]You have an error in your SQL syntax near '; ' at line 1
If I don't join the tables and just select the information from 1 table the filter works, its only when I join the tables and put the filter on that it fails. So I assume that it has something to do with joining the tables.
Any help with be extremly helpful.
Cheers
Riddle
Names
photos
link
This allows for multiple names to be linked to a single photo.
The problem is that when I join the tables instead of getting 1 picture with, for example, 2 names I get the same picture twice with different names each time.
I have tried using the 'DISTINCT' within the SQL statement but that doesn't work. If I try and use a filter on the recordset I get the following error:
ADODB.Recordset.1 error '80004005'
SQLState: 42000
Native Error Code: 1064
[TCX][MyODBC]You have an error in your SQL syntax near '; ' at line 1
If I don't join the tables and just select the information from 1 table the filter works, its only when I join the tables and put the filter on that it fails. So I assume that it has something to do with joining the tables.
Any help with be extremly helpful.
Cheers
Riddle