We have a database we've been using for over 10 years, and up until this year the data was manually entered. We are now importing the data with an .xml file.
During manual entry, the user would assign the record to a group by selecting from a pull down list on the entry form, so that we could group the data properly on the reports. Now that the data is imported into the database, is there a way I can set up the query to assign each record to a group automatically based on the data in the record? We would need to use data from two fields to assign a record to the proper group.
These are cattle production records, and we need to sort by sex and weight to get 5 groups; steers <700, steers 700-800, steers >800, heifers <650, heifers >650. Each record has the sex and the weight data.
The reports we need to print are sorted by the service rep and then on the farm. For each farm we need to summarize the production data for each of the 5 sex/weight groups.
I've already figured out how to group using 5 different queries, but now that I am working on the report I'm thinking it would be better to get the data from one query - hence the need to automatically group them in the single query.
Thanks!