example of what i need to do
table
name time out time home total
ted - 2/2/02 10:00 - 2/2/02 20:00 - 10:00
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 11:00
query1 - returns todays staff hours of work
name time out time home total
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 11:00
Query2 - returns the same as above plus a calculated field with how much cumlative time worked in the previous 24hrs saying the current time and date is 3/2/02 16:00
name time out time home total 24hr check
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 10:00 - 15:00
ie. bill has 4 hrs worked yesterday from 16:00 till 20:00 and 11 hrs today.
the thing i need to do is have a form which displays query1 but includes the calc field from query2.the prob is i need to be able to edit the data from query1 not the calc field from query2 - my staff are only allowed to work a total of 16 hour in any 24hr period always starting from "Now()"
can i link a field from my form with its control source of query1 to the calc field in query2?
tried to explain the best i can hope someone knows what i am trying to do - thanks Phil
table
name time out time home total
ted - 2/2/02 10:00 - 2/2/02 20:00 - 10:00
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 11:00
query1 - returns todays staff hours of work
name time out time home total
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 11:00
Query2 - returns the same as above plus a calculated field with how much cumlative time worked in the previous 24hrs saying the current time and date is 3/2/02 16:00
name time out time home total 24hr check
bill - 3/2/02 12:00 - 3/2/02 13:00 - 1:00 - 1:00
ted - 3/2/02 04:00 - 3/2/02 15:00 - 10:00 - 15:00
ie. bill has 4 hrs worked yesterday from 16:00 till 20:00 and 11 hrs today.
the thing i need to do is have a form which displays query1 but includes the calc field from query2.the prob is i need to be able to edit the data from query1 not the calc field from query2 - my staff are only allowed to work a total of 16 hour in any 24hr period always starting from "Now()"
can i link a field from my form with its control source of query1 to the calc field in query2?
tried to explain the best i can hope someone knows what i am trying to do - thanks Phil