Results 1 to 3 of 3

Thread: Dbcombo

  1. #1

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

    Question

    Hi
    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



  2. #2
    New Member
    Join Date
    Oct 2000
    Posts
    8

    Smile Hope this can be of some help

    I'm not to sure exactly what you want this may be worth a try - or I could be completely wrong!!

    set the bound column of the DbCombo to the Id number
    Then simply execute an SQL statement like follows

    adoVerse.RecordSource = "SELECT Verse.[Verse ID], Verse.heading, Verse.verse FROM verse INNER JOIN [song verses] ON verse.[Verse ID] = [song verses].[Verse ID] WHERE [song verses].[Song ID] = " & Val(frmHomeDisplay.txtSelected.Text)
    Call adoVerse.Refresh

    or more simply

    adoVerse.RecordSource = "SELECT * FROM [table] WHERE tableID = " & Val(cboData.boundColumn)
    Call aboVerse.Refresh

    hope that could be of some use

  3. #3

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

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