Results 1 to 4 of 4

Thread: Dbgrid

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Dbcombo

    Hi all
    How can i make the Dbcombo go to the require row of records when the user select a data inside the Dbcombo?


    Any help and suggestion will be greatly appreciated


    [Edited by CoMMiE on 10-01-2000 at 09:24 AM]

  2. #2
    New Member
    Join Date
    Aug 2000
    Location
    Brazil
    Posts
    14
    let´consider the DBGRID is bound to a recordset called RECORDSET. (ADO) So we have


    Private Sub DBCOMBO_Click()
    RECORDSET.FIND DBCOMBO.ListField & " = " & DBCOMBO.Text
    End Sub

    that´s a way... maybe not that elegant, but it works
    by Ramosf

  3. #3

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Thanks for the reply RAMOSF

  4. #4

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Hi RAMOSF
    I tried your code but i got an object error out of it whats wrong?

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