Solved

Please help with this form!

Posted on 2013-06-13
2
205 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now