Good Afternoon,
I am trying to create a subform that pulls data from a query that uses fields in the main form as its criteria. Everything works fine if I use 5 criteria fields but I need to use 7 and as soon as add the sixth and try to run I get the error mentioned in the title of this thread. Here is a brief synopsis of the database:
7 data tables: Account, Year, Location, Workgroup, Scenario, Version, Event (each table includes all possible values for the respective field plus an ID field)
1 Main Data table: includes a field for each table named above and one for each month (Jan, Feb, Mar...)
1 Form that includes 5 combo boxes for 5 of the categories (Location, Workgroup, Scenario, Version, Year) and 2 text boxes that include Account and Event values.
When I try to pull the values for each month field into the form I get an error, if I only use 5 criteria (any combination) it works but gives me too many results as my unique identifier contains 7 fields.
Does anyone know what I am doing wrong or if there is a better approach to accomplish this?
All help is greatly appreciated,
Steve
I am trying to create a subform that pulls data from a query that uses fields in the main form as its criteria. Everything works fine if I use 5 criteria fields but I need to use 7 and as soon as add the sixth and try to run I get the error mentioned in the title of this thread. Here is a brief synopsis of the database:
7 data tables: Account, Year, Location, Workgroup, Scenario, Version, Event (each table includes all possible values for the respective field plus an ID field)
1 Main Data table: includes a field for each table named above and one for each month (Jan, Feb, Mar...)
1 Form that includes 5 combo boxes for 5 of the categories (Location, Workgroup, Scenario, Version, Year) and 2 text boxes that include Account and Event values.
When I try to pull the values for each month field into the form I get an error, if I only use 5 criteria (any combination) it works but gives me too many results as my unique identifier contains 7 fields.
Does anyone know what I am doing wrong or if there is a better approach to accomplish this?
All help is greatly appreciated,
Steve