Hi! I'm new to this forum and new to MS Access too, so please bear with me
I have created a query which is the source of a report. The WHERE clause in the query is a value in the combo box, given as Combo.Text. The combo box's source is a column from a table and I'm not storing this value anywhere and had used the "Remember this value for future use" option which is provided when creating the combo box. When I select an option from the combo box, instead of opening the custom report, a popup which says prompts me for the parameter opens, and when I type the value, it generates the report, but I want it to generate it on the click of the button after I select the option from the combo box. How can I do this?
The query is as follows:
Code:
SELECT Table_1.Hotel_Name, Table_2.Name_of_Delegate, Table_2.Address, Table_2.City, Table_2.Center, Table_2.Spouse_Present, Table_2.No_of_Children, Table_2.No_of_Guests, Table_2.No_of_Rooms
FROM Table_1 INNER JOIN Table_2 ON Table_1.ID=Table_2.Hotel_of_Residence
WHERE Table_1.Hotel_Name=Form.Form1.Combo10;