473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Access Find the checkout record and add a return time

I am setting up a database in Access 2007 to track equipment that is checked out and returned everyday several times a day. I have the checkout and return times working, but I need the Returns form which only has a text (to enter the equipment ID) to look up the last matching equipment ID record with no return time and insert the NOW() in that record.
The object here is to quickly allow a clerk to simply scan in and out equipment without any clicking.
It works presently with auto tab and input masks but there is a new record for every checkout and return. So I have to use a report to compile the associateID, checkout and return time instead of having a table that shows the User ID, Equipment ID, the checkout time, and return time in a single record.
The form is named Returns with the text box for the EquipmentID field and a hidden Return text box with a default value of NOW(). The table is called Events with an auto number as the primary key. The fields are:
ID(primary auto number), EquipmentID, AssociateID, Checkout, Return

Thanks
Jan 5 '12 #1
2 1773
Seth Schrock
2,965 Expert 2GB
How do you differentiate between checking in vs. out? Do you have a item check out control and a item check in control? This would be the simplest design wise, but maybe not the simplest/fastest method for the users. If you have only one control for in or out and you want the database to figure out if you are checking it in or out based on the current status of the item, you will add much more complication to the design. However I do think that it is possible to do it. I just want to know how you are doing it so I don't have to figure out both methods and have only one used.
Jan 6 '12 #2
One form Checkout puts NOW() in the checkout column of the Events table. For return time there is a separate form putting the NOW() in a column Return in the events table. Those separate forms are selected through a main menu.
So the short answer is that it is handled in separate columns by separate forms so I can compare the intervening time.







The input device the person checking in and out equipment will have is a hand held scanner to scan the barcodes on the equipment.

You can see that the tests I have run just give a separate entry for a check in and a check out. There are a couple of entries that have check out and return on the same line like I want but I typed those directly into the table to experiment with finding code that could differentiate between the two. (Which obviously did not work.) Instead of a single record where returns form finds the check out with the return column for that equipmentID is blank and puts the return time in that row.
Jan 6 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Fardude | last post by:
ACCESS 97, Pessimistic Record Locking!??? Does Access 97 allow record level Pessimistic locking? In other words, when user A is editing a record (has it locked) and User B tries to edit it...
2
by: amywolfie | last post by:
I would like to place a Find button on a form which uses the built-in Access Find facility. If no records are found, I would like to display a custom "no records found - plesae try again" message...
3
by: sean | last post by:
I have a table with fixed row of records SORTED by DATE using ADO pagination method. The user can click a link in one table cell and go to another page to modify the record. Once the updated record...
1
by: kaleshire | last post by:
I have a form that has two combo boxes which are used to find a record for the subform. An AfterUpdate event on the second combo box runs ... Me.vtrack.Requery this part works perfectly, and when...
1
by: mcasaurabhsumit | last post by:
Hi friend, I am unable to get last record in sql server 2000. How to find last record in sql server 2000?
0
by: JoaquimC | last post by:
Hello, I'm new to c#, and i am trying to implement the following behaviour to a DataGrid: When i locate a record in one DataTable i want to select and show the respective grid row in the...
1
by: Simon | last post by:
Dear reader, How can I find a record in a sub form, the sub form type is DataSheet and the record collection in the subform are to many to show them all in the subform window.
3
by: busybeeitsme | last post by:
hi friends how to find the record no.. ie what is the location of the particular record in the database.. i dont hav any s.no column in my database.. if a particular record is retrived from the...
1
by: Bigdaddrock | last post by:
I have a field called DateLastRevised in a Table. I would like that field to be updated to reflect the date and time that the record was last revised. I have a form that edits these records and...
11
by: BarbQb | last post by:
Hi All. I am working with a form to lookup records in one of my tables. The table has 3 primary keys and is not pulling up the records correctly. Form1 is bound to Table1 (a list of Customers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.