help in queries please

gokari

New member
Local time
Today, 16:53
Joined
Apr 21, 2016
Messages
3
Hi there,

I'm stuck with queries and I need a help please.

Capturesnipping.PNG

I need to calculate how many days from one date to another.

Everyone else can use the same formula except me.

Nights stay:([Discharge Date]-[Date Admitted])

Capture2.PNG

Thank you x
 
Not sure what you're saying, as it appears to be working. You can use the DateDiff() function.
 
Supposed to calculate 3 days but it calculates 91 days instead.
 
Are they date/time fields? Looks like a date format problem, as the result looks correct with dates in US format.
 
Oh, and shouldn't the fields be reversed?
 

Users who are viewing this thread

Back
Top Bottom