开发者

help with access query

开发者 https://www.devze.com 2023-01-16 15:44 出处:网络
i have table MyTbl that contain date1, date2, date3 if date1=null i need that in field memo will be \'A\'

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开发者_如何学C will be 'C'

is it can made on access 2007 in query ?

thank's in advance


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")))
0

精彩评论

暂无评论...
验证码 换一张
取 消