datediff in access 97???

D

dan

I'm trying to add the expression below (as recommended
here) in an aql statement:

SUM(DateDiff("n",TimeArr-TimeDep))/60

However, access 97 doesn't seem to recognise DateDiff.
Can anyone give me an alternative method of creating this
expression in access 97??

Cheers,

Dan.
 
S

SA

Dan:

DateDiff is supported in Access 97. There may be two issues that would
cause A97 not to "recognize" it.

1.) If there is a missing reference in your db (Open a module and from the
Tools->References dialog see if anything is missing.)
2.) Sometimes you simply have to compact the db, which will recompile the
query execution plans internally for it, which will result in Access then
recognizing the built in function.
 
J

John Spencer (MVP)

Sum(DateDiff("n",TimeArr,TimeDep))/60

Note that the minus has been replaced with a comma in the above.
 

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