I'm sure I've got the name of this wrong - i'm looking for some SQL code that will return records from a table ONLY when they are linked to records in another table.To put it in real terms, I want to only show the gallery icons for nights that have pictures in them. If you hover your mouse over the folder icons it says how many pics are in each gallery.Here's the current SQL:
set galleryRS=conn.execute("SELECT * FROM events WHERE events_archive IS NOT NULL ORDER BY events_date_year DESC, events_date_month DESC, events_date_day DESC")
Here's the page:Nightclub Gallery PageIf I do an INNER JOIN I get far too many results.Please help!Jk