Invalid Property Value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Gerstman

    #1

    Invalid Property Value

    I have the following code in a mult-form project:

    Private Sub Form_Load()
    sldPackets.Min = frmStartBfv.ret urn_first()
    sldPackets.Max = frmStartBfv.ret urn_last()
    End Sub

    I wish to connect the slider control to values determined on a different
    form. When I try this I get an "Invalid Property Value" error.

    Alternatively I've tried:

    Private Sub Form_Load()
    sldPackets.Min = frmStartBfr.cbo FirstSecond
    sldPackets.Max = frmStartBfv.cbo LastSecond
    End Sub

    What am I doing wrong and how can I correct it?

    David Gerstman





  • Bob Butler

    #2
    Re: Invalid Property Value

    "David Gerstman" <dhgerstman@yah oo.com> wrote in message news:<Hs7u81.2u x@arl.army.mil> ...[color=blue]
    > I have the following code in a mult-form project:
    >
    > Private Sub Form_Load()
    > sldPackets.Min = frmStartBfv.ret urn_first()
    > sldPackets.Max = frmStartBfv.ret urn_last()
    > End Sub
    >
    > I wish to connect the slider control to values determined on a different
    > form. When I try this I get an "Invalid Property Value" error.
    >
    > Alternatively I've tried:
    >
    > Private Sub Form_Load()
    > sldPackets.Min = frmStartBfr.cbo FirstSecond
    > sldPackets.Max = frmStartBfv.cbo LastSecond
    > End Sub
    >
    > What am I doing wrong and how can I correct it?[/color]

    what are the current values of Min and Max and what are you trying to
    change them to? You can't create an invalid situation. for example,
    if Min=0 and Max=10 you can't set Min to 100 because the range would
    be invalid; you have to first set Max to something larger. The
    problem is reversed if you want to set the range lower than it
    currently is.

    Comment

    Working...