Results 1 to 9 of 9

Thread: Problem With combo-box ***(KIND A) RESOLVED ***

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Problem With combo-box ***(KIND A) RESOLVED ***

    Whenever I fill a combo-box from a recordset (with this code):

    VB Code:
    1. While Not TempRS.EOF
    2.     Combo1.AddItem TempRS.Fields("sdOmsch"), TempRS.Fields("ndCode")
    3.     TempRS.MoveNext
    4. Wend
    ndCode = integer
    sdOmsch = string

    This is no problem, but whenever I (the code) try's to add the 27th item, it gives an error:

    Run-time error '5':
    Invalid procedure call or argument


    Does anybody have a clue
    Ow, yes ndCode is the primary key of that table
    Last edited by Lightning; Mar 1st, 2004 at 05:26 AM.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

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