Gold
Gold

Reputation: 62554

help with access query

i have table MyTbl that contain date1, date2, date3

if date1=null i need that in field memo will be 'A'

elae if date2=null i need that in field memo will be 'B'

else if date3=null i need that in field memo will be 'C'

is it can made on access 2007 in query ?

thank's in advance

Upvotes: 0

Views: 28

Answers (1)

czuroski
czuroski

Reputation: 4332

If I understand correctly, you should be able to do this with using IIF -

memo: IIf(IsNull([date1]=True),"A",IIf(IsNull([date2])=True,"B",IIf(IsNull([date3])=True,"C")))

Upvotes: 1

Related Questions