Conditions to Saving

L

Lori

I'm sure this is probably easy but I think my brain is still on vacation :)

I have a form that is used to record journal entries crediting dollar values
from one account while debiting another. I have running totals set for the
debits and the credits.

How would I write code that would:
Compare the running totals and after informing the user that their values
don't match, stop the user from closing the form until they either correct
their entry or close without saving?
 
R

ruralguy via AccessMonster.com

Put your code in the BeforeUpdate event of the form and set Cancel = True to
stop the update.
 

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