C
CJM
I'm more used to SQL Server than Access, but I'm working on an Access DB at
the moment.
I have three tables: Location, Hotels, PrefHotels
Locations: A list of locations that people in my company travel to.
Hotels: A list of hotel chains, inc URL etc that we may use
PrefHotels: Identifies preferred hotels for each location - consists of
LocationID from 1st table, and HotelID from 2nd table.
In my query, I want to list the preferred hotels (chains) for a given
location...
The SQL I have so far is:
Select H.HotelName, H.TelNo, H.Notes, H.URL
from Hotels H
Inner Join PrefHotels P on H.HotelID = P.HotelID
Inner Join Locations L on P.LocID = L.LocID
where l.LocID = 2
While this works in SQL Server, it doesnt in access.
Can you tell me what the Access-friendly syntax would be?
Thanks
Chris
the moment.
I have three tables: Location, Hotels, PrefHotels
Locations: A list of locations that people in my company travel to.
Hotels: A list of hotel chains, inc URL etc that we may use
PrefHotels: Identifies preferred hotels for each location - consists of
LocationID from 1st table, and HotelID from 2nd table.
In my query, I want to list the preferred hotels (chains) for a given
location...
The SQL I have so far is:
Select H.HotelName, H.TelNo, H.Notes, H.URL
from Hotels H
Inner Join PrefHotels P on H.HotelID = P.HotelID
Inner Join Locations L on P.LocID = L.LocID
where l.LocID = 2
While this works in SQL Server, it doesnt in access.
Can you tell me what the Access-friendly syntax would be?
Thanks
Chris