CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    India, West Bengal
    Posts
    36

    adodb.find method

    when using ADO control , the find method for the data object does not support more than one field criteria.
    i.e

    sqlwhere = "field1 = '???' and field2 = 'xxx'"
    datactr.find sqlwhere

    -- returns an error since there are two fields in the criteria statement.

    What is the method to get around this limitation of ADO without using the seek method ?




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: adodb.find method

    MSDN article Q195222 describes 3 workarounds for this problem:
    - use Filter property
    - use Filter and close
    - create a custom find routine

    my personal favorite: do all you database access via stored procedures and call the SP with different (find) parameters.


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

Featured