Results 1 to 7 of 7

Thread: dbcombo not focusing on selected record

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    19
    Hi, I'm having a problem with DBCombo. I guess I should tell you that I'm using Access as my database.

    For my Data"DataBase" I have as follows:
    my Data Connect=(Access)
    my Data DataBaseName=(FR.mdb)
    my Data DefaultType=(2-UseJet)
    my Data RecordSetType=(1-Dynaset)
    my Data RecordSource=(FR_TBL)
    my Data ReadOnly=(False).

    For my DBCombo I have as follows:
    my DBCombo Style=(2-DropDownList)
    my DDCombo MatchEntry=(0-dblBasicMatching)
    my DBCombo DataField=(BRANCH)
    my DBCombo DataSource=(Data1)
    my DBCombo BoundColumn=(BRANCH)
    my DBCombo ListField=(BRANCH)
    my DBCombo RowSource=(Data1)

    The Problem:
    I have set BRANCH in Access DataBase to be the Key field.
    Example....BRANCH IP Address
    0033 198.192.74.253
    0046 198.192.14.253
    0078 198.192.92.253

    When I run the program it will default to BRANCH "0033" and the IP Address for Branch "0033" will show up as well in its own text box, and that is fine. However if I click on the DBCombo box and select BRANCH "0046" or "0078" then nothing changes in the IP Address box it remains the same IP Address for the Default Branch of "0033". How can I make it change records in all fields by just selecting the BRANCH in the DBCombo Box. If I use the DATA controls and click the direction arrows it cycles through all the records and all fields change as I cycle through. I would like to have the same thing happen just by selecting the BRANCH from the DBCombo Box.

    Thank You in advance, [email protected]








  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Do you have your text boxes bound as well?
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219

    Talking

    Use the Find method.

  4. #4
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    use the book mark property of the combo box. try using the DBdatalist.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    19
    How do I use the find function? Thanks, foxfire2020

  6. #6
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Suppose rst is a recordset object.

    Code:
    rst.Find "[Field]='" & soemvariable & "'"


    [Edited by shafee on 11-23-2000 at 06:29 AM]

  7. #7
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    Go over to the database forum, I posted a solution under "DBCombo Problem".

    Cheers

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