S
Sagaert Johan
Hi
I try to use this as sql string ( The field i compare with is variable. )
"SELECT * FROM FMatrix WHERE @wantedfield=@criteria"
i use the Parameters.Add with OleDbType.WChar .
Why can't i specify the field i want to use as a parameter ?
I have no error,but the query has no result when run.
of course i could solve it with
string wantedfield="MyField";
"SELECT * FROM FMatrix WHERE " + wantedfield + "=@criteria"
but i suspect it could be done by using parameters.Add
Do i need to set the OleDbParameter.SourceColumn ?
Any hint ?
Johan
I try to use this as sql string ( The field i compare with is variable. )
"SELECT * FROM FMatrix WHERE @wantedfield=@criteria"
i use the Parameters.Add with OleDbType.WChar .
Why can't i specify the field i want to use as a parameter ?
I have no error,but the query has no result when run.
of course i could solve it with
string wantedfield="MyField";
"SELECT * FROM FMatrix WHERE " + wantedfield + "=@criteria"
but i suspect it could be done by using parameters.Add
Do i need to set the OleDbParameter.SourceColumn ?
Any hint ?
Johan