Hi.
Let's say I've got three numeric fields from database on each form and one for sum, which is calculated by one Sub. Now I want to know if it's possible to run Sub each time you change record and ofcourse on the beginning (enter). Thank you for your answer.
TNX, it works very well. Except one thing. When I get to the last record to add a new one, it tries to calculate some fields that don't exist and returns Invalide use of Null. How could I fix that. Like this:
If newfield = FALSE Then
calculate()
End If
How to check if the last one is indeed the new field? Thanks for answer!
I've found it. At first I wanted to DCount all records + 1 and check if currentrecord is equal. But there's a function NewRecord, which returns 1 if it's new and 0 if it isn't. Neat!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.