object doesn't support property or method

B

betwalk

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
 
R

RoyVidar

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
 
B

betwalk

RoyVidar wrote:
{snip my message}
Small thingie, you're missing an equal sign

Me!NewAmtPaid.Enabled = False

vs

Me!NewAmtPaid.Enabled False
---------------------------------

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

Thank you, Roy!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top