Skip to Content
author's profile photo Former Member
Former Member

Combobox Error: Valid Value - Value does not Exist [66000-62]

Hi everyone,

I am trying to fill a combobox with valid values. Values are added ok, but a message is prompted, for a

specific value, that says Valid Value - Value does not Exist [66000-62] .

I have never seen such an error neither in the forum exists something similar. This is my code:

Dim cmb As SAPbouiCOM.ComboBox
cmb = oForm.Items.Item("CatCombo").Specific
While RS.EoF = False
     If RS.Fields.Item("U_Description").Value.ToString.Length > 50 Then
        descr = RS.Fields.Item("U_Description").Value.ToString.Substring(0, 50)
     Else
        descr = RS.Fields.Item("U_Description").Value.ToString
     End If
     Try
        ' Here is the error 
        cmb.ValidValues.Add(descr, RS.Fields.Item("U_FamCode").Value.ToString)
     Catch ex As Exception
        MsgBox(ex.Message)
     End Try
     RS.MoveNext()

End While

Regards,

Lena Apostolou

Edited by: Lena Apostolou on Dec 4, 2008 10:14 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2008 at 02:15 PM

    Hi,

    When the exception is thrown, have you checked the values of

    descr and RS.Fields.Item("U_FamCode").Value.ToString ?

    Are any one of them being null?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2008 at 02:44 PM

    Hi,

    Yes i have checked the values and they are not null,they have the right values.

    Regards,

    Lena Apostolou

    Edited by: Rui Pereira on Dec 23, 2008 4:14 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.