Good morning!
I'm hoping for some assistance with establishing a specific grouping in an MS Access query. I'm not entirely sure if Access can accommodate what I'm trying to do, but hopeful that it is!
I have a table that is linked to an excel workbook (for the purposes of this post, I'm referring it as Table1). I need it linked so that the notations from the database can update the workbook (IMEX=0 in connection type).
The thing is, there are transactions in this table that have multiple lines and I'm trying to create a query that groups these lines together. For example,
| TransactionID |
Amount |
Line# |
Account |
| T001 |
(200) |
1 |
1002 |
| T001 |
(150) |
2 |
1002 |
| T001 |
300 |
3 |
1002 |
| T001 |
(650) |
4 |
1002 |
| T002 |
1500 |
1 |
1004 |
| T003 |
3500 |
1 |
1005 |
| T003 |
100 |
2 |
1006 |
But what I'm trying to do is create a user form for users to see all transactions grouped by the TransactionID and Account.
| TransactionID |
Account |
| T001 |
1002 |
|
|
| Line# |
Amount |
| 1 |
(200) |
| 2 |
(150) |
| 3 |
300 |
| 4 |
(650) |
The only way I can think of doing this is to create a query that groups the data from Table1. However the only way I've been able to group anything is to aggregate the data, but I'm not sure how to go about this since I need to see all rows and columns per each TransID/Account Combination.
Any advice?
Thanks,
Adam