oledbcommand

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

where alltrim(cocode) = ?
..Parameters.Add(New OleDbParameter("@oacode", OleDbType.VarChar, 10)).Value
= strName
When the strName is blank, (it return all the record)
How can I correct it ??
I am using vfpoledb.dll
 
2 ways
1. do a check in stored proc or query to return nothing
when empty or null
2. send "-1" or some const value whenever it is empty from the bo layer
itself.
 
Back
Top