Thanks guys. I created a query that gives me all the available rooms for a range of date but the problem I’m having is that the query is not running with the arrival and departure date text box I have on the form. Every time I click the drop down button on the combo box in the form the “enter parameter value” box comes up asking to enter the dates. I want the parameter dates to be pulled from the text box. This is my SQL code I have in the query if that helps:
Code:
PARAMETERS [frmreservation].[txtArrivalDt] DateTime, [frmreservation].[txtDepartureDt] DateTime;
SELECT [tblreservation].[Room], [tblreservation].[ArrivalDt], [tblreservation].[DepartureDt]
FROM tblreservation
WHERE ((([tblreservation].[ArrivalDt]) Between [Please enter arrival date] And
[Please enter checkout date]-1))
Or ((([DepartureDt]-1) Between [Please enter arrival date] And [Please enter checkout date]))
Or ((([tblreservation].[ArrivalDt])<[Please enter arrival date]) And
(([DepartureDt]-1)>[Please enter checkout date]-1));