S
sankop
I use Access 2002 to manage members in a neighborhood association. I
have a field for "Last" Name and one for "Spouse Last" to accommodate
members with different last names. I am trying to figure out how to
write an expression in a text box on a form that will replace empty
"Spouse Last" fields with the values in "Last" so the Spouse Last field
won't appear blank on the form.
Here are the expressions I've tried:
=IIf(IsNull([Spouse Last]),[Last],[Spouse Last]) returns #Error
=IIf(IsNull([Spouse Last]),([Last]),([Spouse Last])) returns #Error
=IIf(IsNull([Spouse Last]),([Last],[Spouse Last])) field is blank
=IIf(IsNull([Spouse Last]),Last,Spouse Last) missing operator
Thanks kindly for any and all help. I'm a self taught Access user with
a very basic understanding of Access.
Sandie
have a field for "Last" Name and one for "Spouse Last" to accommodate
members with different last names. I am trying to figure out how to
write an expression in a text box on a form that will replace empty
"Spouse Last" fields with the values in "Last" so the Spouse Last field
won't appear blank on the form.
Here are the expressions I've tried:
=IIf(IsNull([Spouse Last]),[Last],[Spouse Last]) returns #Error
=IIf(IsNull([Spouse Last]),([Last]),([Spouse Last])) returns #Error
=IIf(IsNull([Spouse Last]),([Last],[Spouse Last])) field is blank
=IIf(IsNull([Spouse Last]),Last,Spouse Last) missing operator
Thanks kindly for any and all help. I'm a self taught Access user with
a very basic understanding of Access.
Sandie