S
smoke
I have an access table (control) that consists of fields:
key
fieldname
text
record examples:
1,firstname,Adam
1,lastname,Smith
1,Age,30
2,firstname,Bob
2,lastname,Brown
2,Age,25
Is there a way to join this field to itself on key so that the result
will be:
firstname lastname Age
---------------------------
Adam , Smith , 30
Bob , Brown , 25
I know I can do this by using a oledbadapter(sqlstatement,thisConnection)
but
Is there a way to do it with a selectCmd:
DataTable controlTable=dataSet1.Tables["control"];
string selectCmd;
DataRow[] controlRows;
selectCmd = ????????
controlRows = controlTable.Select(selectCmd);
If it cant be done this way, Is there another way ?
key
fieldname
text
record examples:
1,firstname,Adam
1,lastname,Smith
1,Age,30
2,firstname,Bob
2,lastname,Brown
2,Age,25
Is there a way to join this field to itself on key so that the result
will be:
firstname lastname Age
---------------------------
Adam , Smith , 30
Bob , Brown , 25
I know I can do this by using a oledbadapter(sqlstatement,thisConnection)
but
Is there a way to do it with a selectCmd:
DataTable controlTable=dataSet1.Tables["control"];
string selectCmd;
DataRow[] controlRows;
selectCmd = ????????
controlRows = controlTable.Select(selectCmd);
If it cant be done this way, Is there another way ?