OK here is some test data that I've created using a form. I can't
figure out how to design a query that will tell me how long these
people were "at work" I have the table sorted on Date.
Name Date
Smith, John 11/18/03 11:51:26 AM
Jones, Mary 11/18/03 11:51:36 AM
Jones, Mary 11/18/03 11:51:47 AM
Smith, John 11/18/03 11:51:50 AM
Jones, Mary 11/18/03 6:46:57 PM
Smith, John 11/18/03 6:47:03 PM
Smith, John 11/18/03 6:47:10 PM
Jones, Mary 11/18/03 6:47:16 PM
Let me recap what it is I'm trying to do:
At the front there is a computer and I want people as they come in to
signin. I have a form that they can select there name from a combo
box/lookup table, the date ( =now() ) is hidden so they can't change
that.
When they go home, I'd like them to signout (using whatever method
you'd deem suitable) I'm using the same form and get the results
above. Again the time/date field is hidden. If I could figure out how
to add the signout time as they signout to their signin record then it
would be easy
What I'd then like to do is generate a report that has the name,
timein, timeout and elapsed time. (timein/out would include the date)
I have one book from the library that is for Office 2000 so it covers
Excel, Word, Power Point, Access . . . so it's not too in depth. It
does show how to do a calcualtion using a query and add that into
another column. I need to know how to manipulate the signin and
signout record. Access 2000 for Dummies is out from the library until
Nov 27th.
Could you recommend a book that would help? Give me a title and
author?
Ken Snell said:
It's certainly possible to use a query to find a record based on specific
criteria, such as a person's name (better, the person's ID) and the signin
or signout time.
You can design your query to use expressions for the "criteria:" for a field
in the query. This query then can be used to display information on a form
(and can even edit the info) or to display a report.
If this is your first foray into ACCESS, I agree that it would be good for
you to obtain a fundamental/introductory book on ACCESS (there are many
available in bookstores) in order to get an initial exposure to how to do
this. Then you can post back with questions about what you're trying, what's
not working, how to do something differently.
=====SNIP