I have been playing around with this for a good while and this version of my formula is the only one that gives me an error message, otherwise it's just returning a blank value. So I thought I would post this version to perhaps gain some insight as to what I am doing wrong:
I am trying to perform a Dlookup dependent on if [OilFilterReplaced] box located on my form is checked or not.
Code:
=IIf(Nz([Forms]![OilFilterReplaced]![chkTrue]),DLookUp("[OilFilterCost]","[AssetFFT]","[AssetNo]='" & [AssetNo] & "'"),0)
I am trying to perform a Dlookup dependent on if [OilFilterReplaced] box located on my form is checked or not.