Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

object doesn't support property or method

Discussion in 'Information Technology' started by betwalk@gmail.com, Jul 28, 2006.

  1. betwalk@gmail.com

    betwalk@gmail.com
    Expand Collapse
    Guest

    I'm embarassed to ask this, I've used this technique for years with no
    trouble, but suddenly I'm not getting it. Here's my situation:

    --An unbound form used to collect data which, upon user confirmation,
    will get written to a table.
    --I would like one text box to be enabled, or not, depending on a
    checkbox that precedes it
    --Code in the after update even of the checkbox is very simple

    If Me!NewBought = 0 Then
    Me!NewAmtPaid.Enabled False
    Else
    Me!NewAmtPaid.Enabled True
    End If

    When I test this, I get a runtime error "438" saying this object
    doesn't support the property or method. Clicking Debug highlights the
    enabled statement as the culprit.

    Obviously, I'm doing something differently than I've done before, but I
    cannot uncover where I'm making a mistake. I've even used this
    technique in another form that I built for this particular app.

    I found the following in the MSKB, which leads me to think that it has
    something to do with the checkbox (binary?), but I have to admit that
    this article is sorta greek to me:

    http://support.microsoft.com/kb/200271/

    Any help?

    Thanks in advance...

    Betsy
     
  2. Loading...


  3. RoyVidar

    RoyVidar
    Expand Collapse
    Guest

    "betwalk@gmail.com" <betwalk@gmail.com> wrote in message
    <1153070386.111687.131540@p79g2000cwp.googlegroups.com>:
    > I'm embarassed to ask this, I've used this technique for years with
    > no trouble, but suddenly I'm not getting it. Here's my situation:
    >
    > --An unbound form used to collect data which, upon user confirmation,
    > will get written to a table.
    > --I would like one text box to be enabled, or not, depending on a
    > checkbox that precedes it
    > --Code in the after update even of the checkbox is very simple
    >
    > If Me!NewBought = 0 Then
    > Me!NewAmtPaid.Enabled False
    > Else
    > Me!NewAmtPaid.Enabled True
    > End If
    >
    > When I test this, I get a runtime error "438" saying this object
    > doesn't support the property or method. Clicking Debug highlights
    > the enabled statement as the culprit.
    >
    > Obviously, I'm doing something differently than I've done before, but
    > I cannot uncover where I'm making a mistake. I've even used this
    > technique in another form that I built for this particular app.
    >
    > I found the following in the MSKB, which leads me to think that it
    > has something to do with the checkbox (binary?), but I have to admit
    > that this article is sorta greek to me:
    >
    > http://support.microsoft.com/kb/200271/
    >
    > Any help?
    >
    > Thanks in advance...
    >
    > Betsy


    Small thingie, you're missing an equal sign

    Me!NewAmtPaid.Enabled = False

    vs

    Me!NewAmtPaid.Enabled False

    --
    Roy-Vidar
     
  4. betwalk@gmail.com

    betwalk@gmail.com
    Expand Collapse
    Guest

    RoyVidar wrote:
    {snip my message}
    > Small thingie, you're missing an equal sign
    >
    > Me!NewAmtPaid.Enabled = False
    >
    > vs
    >
    > Me!NewAmtPaid.Enabled False
    >
    > --
    > Roy-Vidar

    ---------------------------------

    Well, dang - picture me here blushing. I must be working with my
    weekend brain, the one that takes time off...!

    Thank you, Roy!
     

Share This Page