G
Guest
I am having trouble getting a nested IIf statement to work correctly. Here
is what I have....
REP:
IIf([Invoices_With_Codes]![WHSE]="AZ",753,IIf([Invoices_With_Codes]![WHSE]="TX",404,[REPLIST]![REGN_CODE]))
In the table REPLIST the REGN_CODE field is a text field because it contains
alpha and numeric characters. The proble with using this statement in the
query is that it is changing the field to numeric so therefore not including
the alpha rows that I know should be in this query. How do I write this
statement to include both alpha and numeric and to leave it as a text field?
Thanks
Amy
is what I have....
REP:
IIf([Invoices_With_Codes]![WHSE]="AZ",753,IIf([Invoices_With_Codes]![WHSE]="TX",404,[REPLIST]![REGN_CODE]))
In the table REPLIST the REGN_CODE field is a text field because it contains
alpha and numeric characters. The proble with using this statement in the
query is that it is changing the field to numeric so therefore not including
the alpha rows that I know should be in this query. How do I write this
statement to include both alpha and numeric and to leave it as a text field?
Thanks
Amy