A user has asked me to add a lookup value to an existing field on a form. The new lookup looks for values (amount of scrap)on a given date to be added to the scrap on a different form (different sources of scrap) to get a total scrap amount. The formula looks like this:
@If(date="";"";@Sum(@DbLookup("":"NoCache";"NOTES/My Company":"Producti.nsf";"Shop Score Calculation";date;"scrap")))+@DbLookup("":"NoCache";"NOTES/My Company":"Producti.nsf";"Insert/Debur Scrap";date;"insertqty")
If there was any Insert/Debur scrap on a given day, everything works fine when the Shop Score Calculation form is F9'ed to update on that same date. However, if there was no Insert/Debur Scrap entered for that date, the Shop Score form update errors out.
How do I account for the possibility of a null value to prevent the error? Thanks.
@If(date="";"";@Sum(@DbLookup("":"NoCache";"NOTES/My Company":"Producti.nsf";"Shop Score Calculation";date;"scrap")))+@DbLookup("":"NoCache";"NOTES/My Company":"Producti.nsf";"Insert/Debur Scrap";date;"insertqty")
If there was any Insert/Debur scrap on a given day, everything works fine when the Shop Score Calculation form is F9'ed to update on that same date. However, if there was no Insert/Debur Scrap entered for that date, the Shop Score form update errors out.
How do I account for the possibility of a null value to prevent the error? Thanks.