Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

empty fields in dropdownlist, help

empty fields in dropdownlist, help

empty fields in dropdownlist, help


I am dutch student that makes databases to pay for his study.
I have a question about a dropdownlist.
I am currently developping an sales-relation system in Foxpro. Everytime when an company is selected in a form, an sql selection searches the contactpersons from that firm an places the results in an array (arr_contact).
This works fine, when I look in the debugger screen for arr_contact it has the good values. The array always has the good values ! But now my problem : When I select an customer for example “ABLEF1”, that has 3 contactpersons those 3 will be showed in the dropdownlist correctly. But… when  I select another customer “ABLOB3” with 1 contactperson, it shows then the person and two EMPTY fiels in the dropdownlist.
I want to get rid offf those empty fields but I don’t know how to manage that.

Thanks in advance for your help.

RE: empty fields in dropdownlist, help

Hi Pomawo,
 after you do your query to the array, do a requery of the combobox.



RE: empty fields in dropdownlist, help

Better yet, use NumberOfElements property!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close