rmokkenstorm
Active member
- Joined
- Feb 20, 2006
- Messages
- 31
I have a problem
Im busy writing a C#.NET project but walked into a problem.
Ive got a Form With 3 Textboxes a Button and a DataGrid.
If i typ a value into the textboxes and i press the button. The datagrid Shows me the correct data.
this.oracleSelectCommand1.CommandText = @"SELECT Collom1, Collom2, Collom3, Collom4, Collom5
FROM Database
WHERE (Collom1 = ARAM2)
AND (Collom2 = ARAM3)
AND (Collom3 = ARAM4)";
But now i want it like This:
If i Typ a value for the first and last colom and not the second one.
I still want him te show me the data he found and ignore the Where at "PARAM3".
If i do this now he says that he havent got enough info to fill op my dataAdaptor.
Wich is logic.
But i realy dont have a clue how to do this.. can you help me?
Im busy writing a C#.NET project but walked into a problem.
Ive got a Form With 3 Textboxes a Button and a DataGrid.
If i typ a value into the textboxes and i press the button. The datagrid Shows me the correct data.
this.oracleSelectCommand1.CommandText = @"SELECT Collom1, Collom2, Collom3, Collom4, Collom5
FROM Database
WHERE (Collom1 = ARAM2)
AND (Collom2 = ARAM3)
AND (Collom3 = ARAM4)";
But now i want it like This:
If i Typ a value for the first and last colom and not the second one.
I still want him te show me the data he found and ignore the Where at "PARAM3".
If i do this now he says that he havent got enough info to fill op my dataAdaptor.
Wich is logic.
But i realy dont have a clue how to do this.. can you help me?