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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top