Hello to all,
I hope this doesn't sound too weird or complicated but I will do my best...
I have a form (frmSelect) that has 2 combo box's to select a Project and a Country. Those values are stored in a table (tblSelect).
I have a query (qrySelect) that is the recordsource for another form (frmMain). qrySelect has criteria in the Project and Country fields to take the value from frmSelect (Project & Country).
What I want to happen:
1. I want the user to select a project and country on frmSelect
2. Hit a command button to open frmMain
3. frmMain be populated with all the records the qrySelect finds with the same Project and Country from frmSelect
I have as the criteria in the qrySelect:
this works when I run the query from a command button on frmSelect but when the frmMain opens it asks for these 2 fields...
Please help!!!!
BakerUSMC
I hope this doesn't sound too weird or complicated but I will do my best...
I have a form (frmSelect) that has 2 combo box's to select a Project and a Country. Those values are stored in a table (tblSelect).
I have a query (qrySelect) that is the recordsource for another form (frmMain). qrySelect has criteria in the Project and Country fields to take the value from frmSelect (Project & Country).
What I want to happen:
1. I want the user to select a project and country on frmSelect
2. Hit a command button to open frmMain
3. frmMain be populated with all the records the qrySelect finds with the same Project and Country from frmSelect
I have as the criteria in the qrySelect:
Code:
[forms]![frmSelect]![Project] in the Project field
[forms]![frmSelect]![Country] in the Country Field
this works when I run the query from a command button on frmSelect but when the frmMain opens it asks for these 2 fields...
Please help!!!!
BakerUSMC