Hi Maurice, Thank you for your reply and breaking everything down for me.
I have tried as you suggested, but I get the 'run time error 438 Object
doesn't support this property or method'
I was trying to set it up in the design view of the table. I don't need to
see the [ILRVAL] box, but i would like the information to be there so I can
run a report off.
I want the action to happen when the 'yes/no' box [40ILR] is ticked in the
form view (I know i'll have to come out of the record in order for it to
update) I have about a half dozen of similarly set up fields where i would
like the figure to update after ticking a yes/no box.
thanks again for your help,
Rosi
Maurice said:
You could try something like:
if me.[40ILR]=-1 then
me.[ILRVAL].defaultvalue="yourvalue here"
end if
hth
--
Maurice Ausum
:
Hi I would like to set up a default value in one field [ILRVAL] based on
whether a previous field [40ILR] - a yes/no field - is a yes.
Any help gratefully received.