Error 2448 Can't set value

S

Skunk

Trying to update a checkbox on form open.

The form is bound to a table, the control is bound to a field in that table.

The control is not locked, is enabled. I see nothing that should prevent
update via the form.

I am able to update a text box, but not a check box.

I have tried me.control.value=true and me.control=true. Each throws 2448
can't set value.

When I open the table I can update as expected.

I have compacted/repaired and even rebuilt to ensure all should work. This
ckeckbox (in fact any checkbox on this form) does not.

Does anyone have an idea why not?
 
S

S.Clark

Maybe the form's Open is too soon/late. Maybe try the Form Load event
instead. If that's no good, the next step is the OnCurrent.

When all else fails, the form timer.
 
D

Duane Hookom

I think the problem is "on form open". Try move the code to the On Load event.
 
S

Skunk

Got it working thanks to the others. Thanks.

ruralguy via AccessMonster.com said:
How about:
Me.Control = 0
or Me.Control = -1


--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
 

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