Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula in a form

Status
Not open for further replies.

vgeng

Technical User
Feb 5, 2003
15
BE
I have next formula in my form :

=Sum(IIf([check]=Yes;[IN];0))

Access only recalculate the formula when I select
another record

Isn't there a possibilty to recalculate the result at the moment I change the checkbox [check] from No to Yes ?

Thanks

Gette
 
Hi!

Try to add a

[tt]me.recalc[/tt]

in the after update event of the checkbox (forces recalculation on all calculated controls on the form)

Roy-Vidar
 
Try adding this to the ON UPDATE for the check box:

if me!check = -1 then
[field name]= sum([in])
else:
[field name] = 0
end if

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top