Hi all.
I want to create a query based on a table 'X' which is on the 'one' side of a one-to-many relationship with table 'Y'. The purpose of the query is to provide the recordset to a form to edit the records in table X but I want to include totals from the linked records in table Y for information purposes.
Table X is 'Items' (as in financial items to be put into my forecasts), table Y is 'Transactions'. The reason I've done it this way is that I can have an item, the cost of which is spread out over several transaction, for example the item 'Banking Charges (2012)' contains 12 transactions, one for each month, I feel this is neater than just having 12 items in the items table.
Basically, I want the form I use to manage my items (which contains a subform listing the transactions for that item), to also display for information purposes the total of all the transactions, the number of transactions and the date of the first transaction.
I know how to use the 'Totals' function within the query, but it seems that because of the way Access works, this prevents me from editing the underlying data in the Items table. I have looked into SQL Aggregate Functions as one possibility, another possibility is if I can create these totals within the form rather than having to create a query, and then just use the Items table as the source for the form. But my skill-level with Access is fairly basic so I'm unable to understand Microsoft's help files myself.
I want to create a query based on a table 'X' which is on the 'one' side of a one-to-many relationship with table 'Y'. The purpose of the query is to provide the recordset to a form to edit the records in table X but I want to include totals from the linked records in table Y for information purposes.
Table X is 'Items' (as in financial items to be put into my forecasts), table Y is 'Transactions'. The reason I've done it this way is that I can have an item, the cost of which is spread out over several transaction, for example the item 'Banking Charges (2012)' contains 12 transactions, one for each month, I feel this is neater than just having 12 items in the items table.
Basically, I want the form I use to manage my items (which contains a subform listing the transactions for that item), to also display for information purposes the total of all the transactions, the number of transactions and the date of the first transaction.
I know how to use the 'Totals' function within the query, but it seems that because of the way Access works, this prevents me from editing the underlying data in the Items table. I have looked into SQL Aggregate Functions as one possibility, another possibility is if I can create these totals within the form rather than having to create a query, and then just use the Items table as the source for the form. But my skill-level with Access is fairly basic so I'm unable to understand Microsoft's help files myself.