April15Hater
Accountant
- Local time
- Today, 13:46
- Joined
- Sep 12, 2008
- Messages
- 349
Hi,
I'm trying to get the following code to return <blank> rather than #Error in a query, and I just can't get it:
Is my syntax flawed maybe?
Thanks,
Joe
I'm trying to get the following code to return <blank> rather than #Error in a query, and I just can't get it:
Code:
IIf(IsError(DLookUp("StateAbbreviation","tblStates","StateID = " & [AccountingStateID]))=True,"",DLookUp("StateAbbreviation","tblStates","StateID = " & [AccountingStateID])) AS AccountingState
Thanks,
Joe