Hi,
Trying to calculate the difference between two date fields in mm/dd/yyyy format. Can I use Sale_Rate: Sale_Date - Receive_Date? I am doing that but I am getting some wierd numbers.
________________________________________________________
Zameer Abdulla
Help to find Missing people Seek counsel of him who makes you weep, and not of him who makes you laugh.
Mo,
Did you try use DateDiff() (note the spelling)?
Your original expression should work. What do you mean by "I am getting some wierd numbers"? Dates are stored as floating point numbers so it is legimate to subtract one date from another date.
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
Mo,
Maybe you should provide some sample records with the result of your calculation. I wonder if your date formatting is different from m/d/y?
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
Can someone please tell me how to calculate the difference in days in MS Access? I know there is a Date_Diff function, but I am not sure how to write it in a query.
For Example: Difference in days 12/10/2005 - 1/10/2006
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.