I have a project where I need to convert a time into military time. I cannot use the Short Time format, as I need to display hour, minutes, an seconds. I have searched here and other places on the web.
Thanks for the reply. I did get the format to display correctly on the query, and on an associated report, by changeing the format in which my PC displayed the time.
I cannot change the format in the table though. It is a linked table that is used by our main software application. Changing the field format would cause problems there I am afraid. I am linking to those tables to do some custom reporting.
I realize that, but the table I am linked to is storing the date as a text field, not as a date field. Why, I do not know. Instead of using a Date/Time field, they use a text field for the date and another one for the time. Each record has several times recorded, and for each one they use a date and time field in text format.
I am using DateValue, and TimeValue and combining the two to get back to a regular Date/Time format in my query. Then I am subtracting the earlier from the later, to come up with a time interval.
"I realize that, but the table I am linked to is storing the date as a text field, not as a date field. "
Do you think that this was an IMPORTANT piece of information to withhold this long?
It might ALSO be important to post several example of this TEXT field, in order to know how one should go about converting this string to a real Date/Time value.
I reversed them by mistake when I re-typed them on the post..... you are correct though. I did state it correctly in an earlier post.
I do have aother question though.
In the same project I have another issue.
I have a table that is the schedule for a given day of two employees that are on a shift. That table contains a schedule number a date, the begining and ending time and a number for each of two employees. The value of each employee is a number that is the key field in another table where there is a record for each employee.
for example
the main table list a schedule number which contains among other things the date, time, location and etc.
The main table references the schedule table, and the schedule table references the employee table.
In my query I looking for certian incidents and when I find them I need to be able to display them and then use the query for a report. The issue I am having is listing both employees in the query.
The main table might give schedule 1453 and schedule would say that employee1 was 323 and employee2 was 224. Then the employee table would list 323 as John, and 224 as Bill.
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.