Originally, my goal was only to select all records in the "forecast_info" table where the table field "f_model" was equal to the content of a form field "v_model". I was able to achieve this with the following query.
Expand|Select|Wrap|Line Numbers
- PARAMETERS [Forms]![vehicle_info_form]![v_model] Text ( 255 );
- SELECT forecast_info.f_model, forecast_info.f_year, forecast_info.f_production, forecast_info.f_sales
- FROM forecast_info
- WHERE (((forecast_info.f_model)=[Forms]![vehicle_info_form]![v_model]));
Expand|Select|Wrap|Line Numbers
- TRANSFORM Sum(QUERYmodelname_forecast.f_production) AS SumOff_production
- SELECT QUERYmodelname_forecast.f_year
- FROM QUERYmodelname_forecast
- GROUP BY QUERYmodelname_forecast.f_year
- PIVOT QUERYmodelname_forecast.f_model;
Thanks in advance.