Hi!
I want the query to return the rooms available for EACH date between the 2 selected dates. At the moment, the query is only returning the common room that is available for each date (even though each date may have other rooms available). Any ideas - thanks!
sSQL = "SELECT [ListDates].[Date], Room.RoomNo From Room, ListDates WHERE (((Room.RoomNo) Not In (SELECT [ListDates].[RoomNo] FROM ListDates WHERE ((([ListDates].[Date]) Between #" & firstdate & "# And #" & seconddate & "#)))));"
I want the query to return the rooms available for EACH date between the 2 selected dates. At the moment, the query is only returning the common room that is available for each date (even though each date may have other rooms available). Any ideas - thanks!
sSQL = "SELECT [ListDates].[Date], Room.RoomNo From Room, ListDates WHERE (((Room.RoomNo) Not In (SELECT [ListDates].[RoomNo] FROM ListDates WHERE ((([ListDates].[Date]) Between #" & firstdate & "# And #" & seconddate & "#)))));"