soontobefour
MIS
I have a form that gets user information, when done they click on the "search" button which is to launch another form and on that form display the results of a query.
this is the code on the new form launched:
Me.RecordSource = "SELECT Reservation.Room, Rooms.Capacity FROM Reservation LEFT JOIN Rooms ON Reservation.Room = Rooms.Rooms GROUP BY Reservation.Room, Reservation.Date, Reservation.Start_Time, Rooms.Capacity HAVING (((Reservation.Date)=#" & Forms!Roombydate_time!Text2 & "#) AND ((Reservation.Start_Time)<>#" & Forms!Roombydate_time!Text4 & "#))"
MsgBox RecordSource
the msgbox does show me the Selest statement with the values from the user. But I don't know how to display the results on the form.
any suggestions?
thanks,
soontobefour
this is the code on the new form launched:
Me.RecordSource = "SELECT Reservation.Room, Rooms.Capacity FROM Reservation LEFT JOIN Rooms ON Reservation.Room = Rooms.Rooms GROUP BY Reservation.Room, Reservation.Date, Reservation.Start_Time, Rooms.Capacity HAVING (((Reservation.Date)=#" & Forms!Roombydate_time!Text2 & "#) AND ((Reservation.Start_Time)<>#" & Forms!Roombydate_time!Text4 & "#))"
MsgBox RecordSource
the msgbox does show me the Selest statement with the values from the user. But I don't know how to display the results on the form.
any suggestions?
thanks,
soontobefour