L
Linda RQ
Hi Everyone,
Using Access 2003 in 2000 format. I am finishing up my query and am stuck
on an expression to give me the total days my patients are on a ventilator.
For this calculation, the time the patient went on and off the ventilator
doesn't matter. If they started on it on 1/1 at 11:30 pm and came off at
2:00am on 1/3 the total days would be 3. 1/1 to 1/1 would be 1 and 1/1 to
1/2 would be 2. My StDtTm has a Date/Time format.
I have started to use the expression builder and I like it. I have no
programming education so it seems like a good tool for now and today, it
saved you all from helping me about 10 times. I may be using the wrong
function for this so let me know. I have the expression below but I don't
know what to put in the <<interval>> spot. I thought maybe "d" but that
didn't work and if I delete this place holder, I get an error.
1. What is it asking for?
2. Is this the right function to use for my expression?
DateDiff («interval», [ThpyStDtTm],[ThpyEndDtTm])
Thanks,
Linda
Using Access 2003 in 2000 format. I am finishing up my query and am stuck
on an expression to give me the total days my patients are on a ventilator.
For this calculation, the time the patient went on and off the ventilator
doesn't matter. If they started on it on 1/1 at 11:30 pm and came off at
2:00am on 1/3 the total days would be 3. 1/1 to 1/1 would be 1 and 1/1 to
1/2 would be 2. My StDtTm has a Date/Time format.
I have started to use the expression builder and I like it. I have no
programming education so it seems like a good tool for now and today, it
saved you all from helping me about 10 times. I may be using the wrong
function for this so let me know. I have the expression below but I don't
know what to put in the <<interval>> spot. I thought maybe "d" but that
didn't work and if I delete this place holder, I get an error.
1. What is it asking for?
2. Is this the right function to use for my expression?
DateDiff («interval», [ThpyStDtTm],[ThpyEndDtTm])
Thanks,
Linda