Hi Everyone,
It's been a long time since I've used Access. I think this may be ease but just can't seem to get it. I'm using Access 2000.
I have a table with the following fields.
RecNbr PrimaryKey,
LastName Text,
FirstName text,
FirstLetterSentDate datetime,
SecondLetterSentDate datetime,
ThirdLetterSentDate datetime,
FourthLetterSentDate datetime
I need to create a query that shows the last letter sent for each person. So I need something that looks like this.
RecNbr,LastName, FirstName,
LastLetterSent=If FourthLetterSentDate is not null then FourthLetterSentDate
If FourthLetterSentDate is null then ThirdLetterSentDate
If FourthLetterSentDate is null and ThirdLetterSentDate is null then SecondLetterSentDate
If FourthLetterSentDate is null and ThirdLetterSentDate is null and SecondLetterSentDate is null then FirstLetterSentDate
End
Is there away to do this in the query design view? If so how?
Thanks for your help!
It's been a long time since I've used Access. I think this may be ease but just can't seem to get it. I'm using Access 2000.
I have a table with the following fields.
RecNbr PrimaryKey,
LastName Text,
FirstName text,
FirstLetterSentDate datetime,
SecondLetterSentDate datetime,
ThirdLetterSentDate datetime,
FourthLetterSentDate datetime
I need to create a query that shows the last letter sent for each person. So I need something that looks like this.
RecNbr,LastName, FirstName,
LastLetterSent=If FourthLetterSentDate is not null then FourthLetterSentDate
If FourthLetterSentDate is null then ThirdLetterSentDate
If FourthLetterSentDate is null and ThirdLetterSentDate is null then SecondLetterSentDate
If FourthLetterSentDate is null and ThirdLetterSentDate is null and SecondLetterSentDate is null then FirstLetterSentDate
End
Is there away to do this in the query design view? If so how?
Thanks for your help!