Results 1 to 3 of 3

Thread: LISTBOX PROBLEM !!!!!!!!!

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    South-Africa
    Posts
    46

    Post

    How must my code look if i want the following to be done:
    I am working with a normal listbox and access as an database.

    In my database i have a list of countries.

    country city
    usa la
    sa jhb

    so if la is displayed in the textbox usa must be highlighted in my listbox.

    On my form i have a listbox for that countries.

    If i run my project I want the correct country to be highlighted.

    etc.
    lstCountry.List(lstCountry.Listindex) = rsContacts("Country")

    So my question is how do I highlight a certian entry in a listbox linked from a database.

    How must my code look like???

    Thanks.


  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    15

    Post

    are you loading you database information into an array upon loading the program or are you pulling the information straight from the database?

    ------------------
    J.R. Berard
    AutoCAD Programmer/Analyst
    mailto:[email protected]

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    I sent you a small project that solves your problem. Email me if you have any questions.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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