PDA

Click to See Complete Forum and Search --> : Dbgrid


CoMMiE
Oct 1st, 2000, 03:08 AM
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]

RAMOSF
Oct 1st, 2000, 09:32 PM
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

CoMMiE
Oct 2nd, 2000, 01:50 AM
Thanks for the reply RAMOSF

CoMMiE
Oct 2nd, 2000, 06:10 AM
Hi RAMOSF
I tried your code but i got an object error out of it whats wrong?