Hoping for a solution today! It is one of those things that is probably very obvious and I am just totally missing it. Here we go.
I work in a law office where we use a case management system to manage our workload. I export the data and use Access to create reporting for the entire office. One of the tables I update to weekly is my table called tbl_Connections. This is a table that let's me know who is assigned specific "Roles" for each case. And some of our cases have more than one Co-Leading Counsel, or more than one Paralegal, etc. The only thing different would be the connections actual name. It looks like this:
Matter Number | Role | LastName
16-07775 | Paralegal | Mask
16-07775 | Paralegal | Strong
16-09322 | Co-Counsel | Anders
16-09322 | Co-Counsel | Belk
16-09322 | Co-Counsel | Steel
Each week I send the attorney/paralegal an Excel worksheet that includes all of their active cases they are currently working on or assigned to. To do that I run a query that makes a table from the connections table and a master details table (where all the data for the case resides) and my criteria will look for their last name to export their specific report. My issue is that I cannot figure out how to combine the LastName from the tbl_Connections table where I have more than one attorney/paralegal in the same role, into the make table query for the excel worksheet.
I need to it show:
Matter Number | Role | LastName
16-07775 | Paralegal | Mask; Strong
16-09322 | Co-Counsel | Anders; Belk; Steel
I added the module from AllenBrowne ConcatRelated and when I try to run the results in a query I get the error:
Matter Number | Role | LastName | CombinedConnections
16-07775 | Paralegal | Mask | #Error
16-07775 | Paralegal | Strong | #Error
16-09322 | Co-Counsel | Anders | #Error
16-09322 | Co-Counsel | Belk | #Error
16-09322 | Co-Counsel | Steel | #Error
This is the SQL Statement I have set up after surfing here all day:
SELECT tbl_Connections.[Matter Number], tbl_Connections.LastName, tbl_Connections.Role, ConcatRelated([LastName],[tbl_Connections],"[Matter Number]=" & tbl_Connections.[Matter Number]) AS CombinedConnections
FROM tbl_Connections
WHERE (((tbl_Connections.[Matter Number]) In (SELECT [Matter Number] FROM [tbl_Connections] As Tmp GROUP BY [Matter Number],[Role] HAVING Count(*)>1 And [Role] = [tbl_Connections].[Role])) AND ((tbl_Connections.Ending) Is Null))
ORDER BY tbl_Connections.[Matter Number] DESC;
I am not an expert at this and am groveling for help from the masters here!
All that to just say HELP! Pretty Please! :banghead:
I work in a law office where we use a case management system to manage our workload. I export the data and use Access to create reporting for the entire office. One of the tables I update to weekly is my table called tbl_Connections. This is a table that let's me know who is assigned specific "Roles" for each case. And some of our cases have more than one Co-Leading Counsel, or more than one Paralegal, etc. The only thing different would be the connections actual name. It looks like this:
Matter Number | Role | LastName
16-07775 | Paralegal | Mask
16-07775 | Paralegal | Strong
16-09322 | Co-Counsel | Anders
16-09322 | Co-Counsel | Belk
16-09322 | Co-Counsel | Steel
Each week I send the attorney/paralegal an Excel worksheet that includes all of their active cases they are currently working on or assigned to. To do that I run a query that makes a table from the connections table and a master details table (where all the data for the case resides) and my criteria will look for their last name to export their specific report. My issue is that I cannot figure out how to combine the LastName from the tbl_Connections table where I have more than one attorney/paralegal in the same role, into the make table query for the excel worksheet.
I need to it show:
Matter Number | Role | LastName
16-07775 | Paralegal | Mask; Strong
16-09322 | Co-Counsel | Anders; Belk; Steel
I added the module from AllenBrowne ConcatRelated and when I try to run the results in a query I get the error:
Matter Number | Role | LastName | CombinedConnections
16-07775 | Paralegal | Mask | #Error
16-07775 | Paralegal | Strong | #Error
16-09322 | Co-Counsel | Anders | #Error
16-09322 | Co-Counsel | Belk | #Error
16-09322 | Co-Counsel | Steel | #Error
This is the SQL Statement I have set up after surfing here all day:
SELECT tbl_Connections.[Matter Number], tbl_Connections.LastName, tbl_Connections.Role, ConcatRelated([LastName],[tbl_Connections],"[Matter Number]=" & tbl_Connections.[Matter Number]) AS CombinedConnections
FROM tbl_Connections
WHERE (((tbl_Connections.[Matter Number]) In (SELECT [Matter Number] FROM [tbl_Connections] As Tmp GROUP BY [Matter Number],[Role] HAVING Count(*)>1 And [Role] = [tbl_Connections].[Role])) AND ((tbl_Connections.Ending) Is Null))
ORDER BY tbl_Connections.[Matter Number] DESC;
I am not an expert at this and am groveling for help from the masters here!
All that to just say HELP! Pretty Please! :banghead: