Hi.
I have created a query from a table called TimeWorked (one column). It contains data in hours:minutes (or hh:nn). I need to convert this to Days only.
I am trying something like:
Days_Only: Format([TimeWorked]/1440,"dd")
but i keep getting "#Error" in my columns after I run the query.
Anyone have any ideas?
2007-06-08
11:08:37
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
Under Total in the Query screen I have tried adding the TimeWorked column as Group By, and the Days_only . . .etc entry as "Expression". The query takes longer to process, but the same result.
2007-06-08
11:13:10 ·
update #1
I have also tried switching the "dd" to "nn" (out of curiosity), but still the same thing. I KNOW I am missing something small!
2007-06-08
11:14:36 ·
update #2
I should also mention that the Data Type for the "TimeWorked" table is actually setup as a 'text' instead of 'number (tried converting to number but then all my hh:mm data turned to 0s).
2007-06-08
11:27:45 ·
update #3
Thanks, I will try both your suggestions later today when I get a chance!!!
2007-06-09
02:05:20 ·
update #4
So far so good--only issue is that if I have an entry that is 0:4 (so anything under 24 hrs) I get an #error entry, but that is OK, as I can count those as 0 day periods.
2007-06-09
12:17:41 ·
update #5