I would create a module and put the following function in it
Public Function ConvertMilTime(strec As String) As Date
strec = Left(strec, 2) & ":" & Right(strec, 2)
ConvertMilTime = Format(strec, "Long Time")
End Function
I added the step of converting the received time to a string with the ":" simply for your understanding of how it would work
Then you query would look like this.
SELECT Field1, Field2, ConvertMilTime(Field3) AS MyTime
FROM Table1
Replace as follows
Field 1 and 2 are simply other fields you want in your query.
Field 3 is the name fo the field you want to convert to normal time.
Table 1 is the table to pull the data from.
The only thing I would add to the function is a check at the beginning to account for
1. Nulls - Assume 0001 for one minute past midnight
2. 0000 - which is not a valid time. Maybe add a one to the end to make it also one minute past midnight
Andy
Andy Baldwin
"Testing is the most overlooked programming language on the books!