Results 1 to 5 of 5

Thread: Bindingsource .Filter using LIKE and numeric fields

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    Constanta,Romania
    Posts
    71

    Bindingsource .Filter using LIKE and numeric fields

    Hi !
    I try filtering Bindingsource using LIKE operator for a numeric field,but I can't resolve it.

    id - numeric field
    name - text field
    Code:
        bsrc.Filter = " CStr(ID) LIKE '%"+txtSearch.text+"%' OR name LIKE '%"+txtSearch.text+"%'"
    I got error : "The expression contains undefined function call cstr()"

    Thanks.
    Last edited by ionut_y; Aug 26th, 2007 at 02:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width