Can anyone tell me what is wrong with the following syntax.
=IIf([premium]=0,Null,DLookUp("[totalpremium]","qtotalprems",[netwtpeawt04.name]="[name]")).
I've tried it several ways with the [ ],s. I just doesn't return a
value even with one in the query. all return null
thanks,
Rong
Tom Lake - 09 Jan 2006 08:57 GMT
> Can anyone tell me what is wrong with the following syntax.
> =IIf([premium]=0,Null,DLookUp("[totalpremium]","qtotalprems",[netwtpeawt04.name]="[name]")).
> I've tried it several ways with the [ ],s. I just doesn't return a
> value even with one in the query. all return null
> thanks,
> Rong
Try this:
=IIf([premium]=0,Null,DLookUp("[totalpremium]","qtotalprems","[netwtpeawt04.name]='"
& [name] & "'")).
Tom lake