I am creating an Access application using Access as the front end and SQL Server as the backend database.
I have a table named tblA consisting of the following 2 fields:
Branch Customer
---------- --------------
1 121
1 122
1 135
2 166
2 194
2 276
3 299
3 300
3 388
4 389
4 444
5 446
6 469
6 478
How would you break this up so that you could have each unique Branch generate a separate Excel Spreadsheet consisting of rows for each Customer within each Branch.
For example:
Branch1.XLS
Customer
121
122
135
-----------------------
Branch2.XLS
Customer
166
194
276
-----------------------
ExportedFile = "C:\BRANCH & ".XLS"
DoCmd.TransferSpreadsheet acExport, 8, "tblA", ExportedFile, True, ""
I have a table named tblA consisting of the following 2 fields:
Branch Customer
---------- --------------
1 121
1 122
1 135
2 166
2 194
2 276
3 299
3 300
3 388
4 389
4 444
5 446
6 469
6 478
How would you break this up so that you could have each unique Branch generate a separate Excel Spreadsheet consisting of rows for each Customer within each Branch.
For example:
Branch1.XLS
Customer
121
122
135
-----------------------
Branch2.XLS
Customer
166
194
276
-----------------------
ExportedFile = "C:\BRANCH & ".XLS"
DoCmd.TransferSpreadsheet acExport, 8, "tblA", ExportedFile, True, ""