P
Peter Lawton
I am trying to combine two IIf expressions that work fine by themselves into
a single expression.
I have fields [Publisher] and [SubPublisher] and two Expressions
a) FinalPub: IIf([SubPublisher]="Abracadabra","Abracadabra")
b) FinalPub: IIf(IsNull([SubPublisher]),[Publisher])
I want a field (I have called it FinalPub) to either show Abracadabra if the
SubPublisher is Abracadabra or the contents of the Publisher field if not.
If I run Expression a) my query fills the FinalPub field correctly with
Abracadabra if the Sub Publisher is Abracadabra but if there is no sub
publisher it returns a blank record.
Expression b) returns the Publisher if the SubPublisher filed is blank
I don't know if I am getting the syntax wrong or asking an IIf expression to
do something it was not designed to do.
Help gratefully received. Also if anyone knows of a web or print guide to
the basics of building expressions in Access I'd be grateful to know about
it. (I find the help in Access 2002 up labyrinthine and unintuitive)
peter
a single expression.
I have fields [Publisher] and [SubPublisher] and two Expressions
a) FinalPub: IIf([SubPublisher]="Abracadabra","Abracadabra")
b) FinalPub: IIf(IsNull([SubPublisher]),[Publisher])
I want a field (I have called it FinalPub) to either show Abracadabra if the
SubPublisher is Abracadabra or the contents of the Publisher field if not.
If I run Expression a) my query fills the FinalPub field correctly with
Abracadabra if the Sub Publisher is Abracadabra but if there is no sub
publisher it returns a blank record.
Expression b) returns the Publisher if the SubPublisher filed is blank
I don't know if I am getting the syntax wrong or asking an IIf expression to
do something it was not designed to do.
Help gratefully received. Also if anyone knows of a web or print guide to
the basics of building expressions in Access I'd be grateful to know about
it. (I find the help in Access 2002 up labyrinthine and unintuitive)
peter