CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Urgent - Searching ADO Recordssets

    How do I create a search ado record facility on my forms?
    Can anyone help, Please...

    Thanx

    F. T. W.

  2. #2
    Join Date
    Feb 2001
    Posts
    54

    Re: Urgent - Searching ADO Recordssets

    Hello:

    If I understand what you mean, you can use this program which will allow an user can input thier column and data to be searched.
    [\vbcode]
    Adodc1.RecordSource = "Select " & Text3.Text & _
    " from " & Text4.Text & _
    " WHERE " & Text5.Text & "=" & Text6.Text
    Adodc1.Refresh
    [/vbcode]

    Good Luck


  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Urgent - Searching ADO Recordssets

    Hi Robert. I haven't made use of the adodc control, I've selected the Ado Code Option on the DataForm Wizard, how can I do it without the adodc control?

    Thanx
    Hannes

    F. T. W.

  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Urgent - Searching ADO Recordssets

    sSQL = "select * from Table where Field = YourCriteria"

    rs.Open sSQL, adOpenDynamic, adLockOptimistic

    now recordset contains your search criteria and you can do whatever you want with it.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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