iif statements to enter data

G

Guest

I have two controls of a form: Pledge and Gift. I would like to update the
pledge automatically when a gift is recieved and posted. I tried using an
update query that would run when the Gift field is updated. I tried building
the query with this update expression iif(NotNull([pledge]), [Pledge]-[Gift])
in the Pledge filed. Access didn't like the expression. Any ideas about how
to do this?
 
G

Guest

I assume that both fields are currency (pledge and gift) or at least
numerical ?

NameOfExpr: IIf([Pledge]>0.01,([Pledge]-[Gift]))
 

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