Compare fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a data base for training, the employee gets a start date for a skill
and when he has finished the training and achieved date there are never two
dates, how do I return a value on a report which is based on a crosstab query
to return either no date, start date or finish date using a module.
 
iif(achieveDate>0, achieveDate, iif(trainDate>0,trainDate,''))

(yes, there are two I in iif)
I'm not at an Access computer, the date test may be wrong, but that is the
format.
If you want the field to be invisible when there is no date, you would put a
test in the OnPrint area of the report.

Someone will correct me if I am wrong.

-Stebain
 

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

Back
Top