hi - i am a dba by nature but i've been assigned the task of populating a pre-formatted excel spreadsheet from a SQL stored procedure. i've managed to use VBA to establish a connection to the database and execute the stored procedure which returns data to the spreadsheet but i'm having trouble maintaining the required format. the results of the stored procedure look like this:
Project Date Employee Hours
PTMS 1/1/01 Alan Smith 3
PTMS 1/1/01 Dave Jones 5
PTMS 1/2/01 Sue Allen 8
i need to populate a spreadsheet and have it look like this (with dynamic formatting based on number of records returned for each grouping):
Project
PTMS
Date
1/1/01
Employee Hours
Alan Smith 3
Dave Jones 5
Date
1/2/01
Employee Hours
Sue Allen 8
basically - the client is desperately trying to use excel as a report writer. they want dynamic grouping and conditional formatting but they also want the functionality of excel as a spreadsheet - ugh. anyone have any 'simple' solutions???? using crystal reports or access is not an option
Project Date Employee Hours
PTMS 1/1/01 Alan Smith 3
PTMS 1/1/01 Dave Jones 5
PTMS 1/2/01 Sue Allen 8
i need to populate a spreadsheet and have it look like this (with dynamic formatting based on number of records returned for each grouping):
Project
PTMS
Date
1/1/01
Employee Hours
Alan Smith 3
Dave Jones 5
Date
1/2/01
Employee Hours
Sue Allen 8
basically - the client is desperately trying to use excel as a report writer. they want dynamic grouping and conditional formatting but they also want the functionality of excel as a spreadsheet - ugh. anyone have any 'simple' solutions???? using crystal reports or access is not an option