how do i use an if is null, and if is not null statement together

L

latha

I have to compare two columns of data, and show the status in column three.
Column1 = enrolleddate, Column 2= DisenrolledDate, Column 3 = Status
If column1 and column2 are null, "Active",
if column2 is not null, then disenrolleddate
Thanks for helping me.
 
J

Jeff Boyce

If you were using a spreadsheet, you might need that third column.

In Access you can simply use a query to do the comparison and generate the
"calculated" value.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
K

KARL DEWEY

Try this ---
IIf([DisenrolledDate] Is Null And [enrolledDate] Is
Null,"Active",[DisenrolledDate])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top