Set value from an unbound field

O

Octavee Uhl

Hi,

I want to set a value to a numeric field (called NumberGuests) on a form
when I close this form.
The value comes from a unbound field (NumberGuestsAutomatic) which is fed
through a subform in this form.
However, all I tried did not quite work out. It says "you can't assign a
value to this object'.
I used a macro with a 'on close' event.

Just to test the macro I did this. When I use the same macro on an a field
with an after update event it works, but I want it automatically either when
the unbound field is changed or when the form gets closed etc.

What do I do wrong?
Thanks
Octavee
 
Top