Solved

Please help with this form!

Posted on 2013-06-13
2
211 Views
Last Modified: 2013-06-14
Hello everyone,

I'm really struggling with a form in a registration database I'm making for an event next week. I've tried a couple of other forums but to no avail - hopefully this site will prove to be the one that helps!!

I have one table, called details, which has the follow fields: ID, ChildName, Age, ParentPhone, Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday (those last few fields are to record daily attendance).

So, all the first fields are filled in before the event starts… on a daily basis, all that needs filled out is the check box for the relevant day (saturday, sunday etc).

I've made a simple form for each day. It has three of the fields on it - 'ID' , 'ChildName' and 'Saturday' (or whatever the day is). The 'ID' field is a combo box - entering the child ID (which is done using a usb barcode scanner - simply enters a number) 'opens' the relevant record.

Here's what I want to happen - I want the registrar at reception to simply have to:

1. Scan the ID barcode
2. Once the record is opened it then...
3. .. ticks the 'saturday' box (labelled 'present') for that day
4. saves the record
5. returns the cursor to the ID box (labelled Search) ready for the next child..

I trust this makes sense. I've been really struggling to do this - I'd really love someone to be able to help. I can provide Skype details if a vocal explanation would be more understandable!

Thanks,

Andrew
0
Comment
Question by:Armacn
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 39244544
Andrew,

 Your struggling a bit because the table design is incorrect.

 You should have one table for the children with ID, ChildName, Age, ParentPhone, etc.   and one table for the attendance

tblAttendance - One record per child per date:
ChildID - Foreign key to tblChildren
Attended - Date/time

The two fields combined make up the primary key.

 Your form then would be a main/subform combination.

 The main form would be bound to the child table.   You'd have a combo box control to do the lookup and it would be bound to their ID.

  You could then scan or type in the ID.

  When that happens, the parent / child names would fill in and all the other detail.

  The subform would show the attendance records.

  A second form could be used for check-in.

  Have the current date, a combo again for lookup on the child ID, and a OK button.  Clicking OK would add a new record (insert) a record into the attendance table (you can do this with an append query).

Jim.
0
 

Author Comment

by:Armacn
ID: 39247904
Brilliant Jim, thank you very much!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question