XelaIrodavlas
Registered User.
- Local time
- Today, 21:38
- Joined
- Oct 26, 2012
- Messages
- 175
... is what I found myself asking.
The question: Is there a way to export all records across multiple tables onto a single excel spreadsheet, but without a ludicrous amount of duplication every time there's a one to many relationship?
Let me explain, I have an HR database featuring tables for Employees, Roles/Trades, Qualifications, Sites etc, and I've been asked if it's possible to get all of that onto one excel spreadsheet so that we can do mail merges, postcode searches etc (I know you can do these things on access, but we're ignoring that for now!!!).
So I gave it a try, creating a query to bring all the information together into a list I could export, but the problem is each employee has multiple roles, and in that they also have multiple qualifications, and multiple sites, and multiple everything else. Inevitably, Access crashed. (I don't blame it either, if my math is right there would have been literally millions of records, each more or less the same except for one difference to the one before it.)
Is there something obvious I have overlooked? Or was Access just not born to do this? What would be nice would be to find some coding or something, to rearrange each unique field entry into a column (where each row is an employeeID), that way the data would be presented in a matrix. In other words:
__________Employee details________Everything else
EmployeeID.............x...............................x...........
Rather than this:
Employee1 DetailA DetailA DetailA DetailA DetailA DetailA
Employee1 DetailA DetailA DetailA DetailA DetailA DetailB
Employee1 DetailA DetailA DetailA DetailA DetailB DetailB
Employee1 DetailA DetailA DetailA DetailB DetailB DetailB
Employee1 DetailA DetailA DetailB DetailB DetailB DetailB
Employee1 DetailA DetailB DetailB DetailB DetailB DetailB
But I would have no idea how to go about it. So, any ideas???
The question: Is there a way to export all records across multiple tables onto a single excel spreadsheet, but without a ludicrous amount of duplication every time there's a one to many relationship?
Let me explain, I have an HR database featuring tables for Employees, Roles/Trades, Qualifications, Sites etc, and I've been asked if it's possible to get all of that onto one excel spreadsheet so that we can do mail merges, postcode searches etc (I know you can do these things on access, but we're ignoring that for now!!!).
So I gave it a try, creating a query to bring all the information together into a list I could export, but the problem is each employee has multiple roles, and in that they also have multiple qualifications, and multiple sites, and multiple everything else. Inevitably, Access crashed. (I don't blame it either, if my math is right there would have been literally millions of records, each more or less the same except for one difference to the one before it.)
Is there something obvious I have overlooked? Or was Access just not born to do this? What would be nice would be to find some coding or something, to rearrange each unique field entry into a column (where each row is an employeeID), that way the data would be presented in a matrix. In other words:
__________Employee details________Everything else
EmployeeID.............x...............................x...........
Rather than this:
Employee1 DetailA DetailA DetailA DetailA DetailA DetailA
Employee1 DetailA DetailA DetailA DetailA DetailA DetailB
Employee1 DetailA DetailA DetailA DetailA DetailB DetailB
Employee1 DetailA DetailA DetailA DetailB DetailB DetailB
Employee1 DetailA DetailA DetailB DetailB DetailB DetailB
Employee1 DetailA DetailB DetailB DetailB DetailB DetailB
But I would have no idea how to go about it. So, any ideas???