Hi there, Sorry if this rambles or doesn’t make sense but please bear with me.
I have a little experience with access many years ago and now trying to get back into it. The problem i have is as follows.
I’m trying to quiz a large excel spread sheet. It is basically made up of all our jobs manufactured and peoples clocking in and out on these jobs to manufacture them. I have managed to create a query that tells me all the items worked on for a given day. The trouble comes with the jobs worked on by the night shift. If i was to look at everything for the 1st of July it won’t return the items they started in the early hours of the 2nd but includes the items they started in the early hours of the 1st, which was on the previous days shift. (Hope that makes sense).
The field’s i have to query on are:
{REAL_CLOCKIN] & [REAL_CLOCKOUT]. The trouble is these are not actual date/time field’s but stored as a text field. There formatted as 2011-04-09 08:10:39.000
I have managed to create a query that splits these columns into 2. 1 with a date and 1 with a time.
Date In: Left([REAL_CLOCKIN],InStr(1,[REAL_CLOCKIN]," ")-1)
and
Time: Right([REAL_CLOCKIN],Len([REAL_CLOCKIN])-InStr(1,[REAL_CLOCKIN]," "))
Can anyone point me in a direction, apart from give up, that would return the info i need.
Many thanks in advance