I have data that i want to list in a grid.
it contains the following data structure
GroupID, PartNumber, PartDesc , Date_Out, Date_In, History ,Log_Date
when a job is opened on date_Out it gets given a GroupID (number) so that i know each history update this record belongs too.
ie.
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data , 13/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 2 , 14/12/10
2 , 010-222 , Filter , 13/12/10 , 14/12/10 , Test Data 3 , 14/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 4 , 15/12/10
3 , 010-111 , Compressor , 16/12/10 , 19/12/10 , Test Data 5 , 18/12/10
i would like to group the info by GroupID then sort by PartNumber and also by Date_Out , so it now becomes
3 , 010-111 , Compressor , 16/12/10 , 19/12/10 , Test Data 5 , 18/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data , 13/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 2 , 14/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 4 , 15/12/10
2 , 010-222 , Filter , 13/12/10 , 14/12/10 , Test Data 3 , 14/12/10
I have tried different variants on an SQL statement but it never gives be the correct group and sort.
hope someone can help
it contains the following data structure
GroupID, PartNumber, PartDesc , Date_Out, Date_In, History ,Log_Date
when a job is opened on date_Out it gets given a GroupID (number) so that i know each history update this record belongs too.
ie.
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data , 13/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 2 , 14/12/10
2 , 010-222 , Filter , 13/12/10 , 14/12/10 , Test Data 3 , 14/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 4 , 15/12/10
3 , 010-111 , Compressor , 16/12/10 , 19/12/10 , Test Data 5 , 18/12/10
i would like to group the info by GroupID then sort by PartNumber and also by Date_Out , so it now becomes
3 , 010-111 , Compressor , 16/12/10 , 19/12/10 , Test Data 5 , 18/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data , 13/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 2 , 14/12/10
1 , 010-111 , Compressor , 12/12/10 , 15/12/10 , Test Data 4 , 15/12/10
2 , 010-222 , Filter , 13/12/10 , 14/12/10 , Test Data 3 , 14/12/10
I have tried different variants on an SQL statement but it never gives be the correct group and sort.
hope someone can help