how to compare date

  • Thread starter Thread starter Tausif Alam
  • Start date Start date
T

Tausif Alam

Hi all GURU,

I have a field date_stamp stores date and time. I would like to compare only
date... how can i do it...

Thankx

Tausif.
 
Tausif,

Date/time fields in Access are really numeric fields of type Double, where
the date is the integer part and the time is the decimal part, only they are
by default formatted as some date format for display, depending on the
regional settings on your Windows installation. So, if you want to compare
on the date part only, just use the Int() function on the date_stamp field
(Int([date_stamp]).

HTH,
Nikos
 
You can obtain the date component of a DateTime value using the DateValue()
function.

Check Access VB Help on the above function.
 

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

Query DateTime Field 7
Query with LIke Statement 2
create historical query 2
Alter Query. 2
Access Compare records in same access table 0
Validation Rule 1
Compare two dates and use the earlier date 8
Comparing Dates 5

Back
Top