date/time query

  • Thread starter Thread starter Steve M
  • Start date Start date
S

Steve M

Each record has a name field and seven date/time fields. These fields are
used to record when a review date is. I need to create a query that will
show if any of the date/time fields are older than the current date. The
date/time fields are called 'desreview1' 2 etc. I need to be able to see
which person is out of date on each field. (if all that makes sense)

cheers baz
 
Steve said:
Each record has a name field and seven date/time fields. These fields are
used to record when a review date is. I need to create a query that will
show if any of the date/time fields are older than the current date. The
date/time fields are called 'desreview1' 2 etc. I need to be able to see
which person is out of date on each field. (if all that makes sense)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sounds like an not Normal table. Read about db design and Normalization
in _Database Design for Mere Mortals_, by Hernandez.

Use the IIf() function

IIf(desreview1 > Date(),"review1",
IIf(desreview2 > Date(), "review2",
IIf(desreview3 > Date(), "review3")))

Continue for all columns. Sheesh...

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlHDx4echKqOuFEgEQLmPgCgwBtXODCvtmtt/aFD8NehAoxyBhIAmwQ3
kUBqMg/JSGmA0jbvCXGpc01m
=DYIw
-----END PGP SIGNATURE-----
 

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

Similar Threads

Date/field query problem 1
Dcount returning no results!!! 0
#error - Blank 3
Delete Query 6
query on date 1
Count by short date and group by agent name 6
Update Query 10
Query Question 1

Back
Top