How to make Record and combo the same

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Christebelle
    New Member
    • Apr 2010
    • 1

    How to make Record and combo the same

    Programming Language: vb6
    backend Database is : MSAccess

    I have two tables the TBLCaveinfo and the TBLDetails. I have a form with a combobox on it. The combobox is populated with the Cavenames in the TBLCaveinfo and the Caveid is the link to my second table the TBLDetails..In my combobox i get the id of the cavename and save it to the TBLDetails to have the link..

    Now..
    whenever i use the record selectors like the first record, next, prev...of the records the value of the combobox doesnt follow.. Can somebody help me on this one..How can i let the value of the combobox be the same of the record i selected..i hope i made it clear..

    By the way im using adodc like adodc1.recordse t.movefirst

    I'd appreciate your help.

    Thanks.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    kindly post the suspected part of the code for reference of our experts.

    Comment

    • smartchap
      New Member
      • Dec 2007
      • 236

      #3
      I think u may not be moving to the required record. In change event of combobox move to first record then move to all other records one by one unless as per required id the record is not found. Then exit the loop and do with the selected record as per ur wish.

      However, for particular help, plz post ur code stating problem area.

      Comment

      Working...