I've tried =IIf(DSum("[EstLabCostExt]", "ProdLabT", "[ProdID] =" & [tboProdID] & " AND " & "[OpsID] = 32") Is Null, 0, DSum("[EstLabCostExt]", "ProdLabT", "[ProdID] =" & [tboProdID] & " AND " & "[OpsID] = 32") and I've tried =NZ(DSum("[EstLabCostExt]", "ProdLabT", "[ProdID] =" & [tboProdID] & " AND " & "[OpsID] = 32"), 0). I've also tried using if..else..end if in vba on an unbound field. All with the same result - #Error! in the field in question. I guess I could create a bogus record for the queried tables each time I create a new Product (there would be 3), but that doesn't seem to be the proper way to fix this problem.
Reply from Alex Hedley:
Let me do some more tests and get back to you
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 11.