Solved

Best Way to start creating a form out of multiple tables?

Posted on 2011-03-05
8
371 Views
Last Modified: 2012-05-11
I am trying to create a form out of multiple tables. I have attached a PDF of what I want the form to look like. I'm confused as to how to go about building parts of it and getting the classes to work with the attendance and departments.

An instructor will fill this form in. They will enter in the student name, their attendance, their grades and any comments. I will then need to make the amount of absences ("A") total into the "Att" field and the average grade for each class total into the "Train Avg" field.

Any help on how I should go about building the Attendance and Grading areas is appreciated.
thank you
sampledb0311.accdb
Students.pdf
0
Comment
Question by:amyamo
  • 4
  • 4
8 Comments
 
LVL 13

Expert Comment

by:LIONKING
ID: 35043995
In my personal opinion you should create different forms for saving different information.
For instance, you could create a form to register student information, one form for attendance, one for grading and commenting. If you do this you would have a cleaner UI and something easier to work on.

I'm not saying it's impossible to do it all in a single form, but it will be a lot more work.
0
 

Author Comment

by:amyamo
ID: 35044017
I would be fine with creating different forms, my problem is how to create each form. For instance, the attendance form - The tables to create this are the attendance and classes. I made a junction form that links the two for the many-to-many relationship - how do I go about creating the areas that the instructor will enter either "X", "T", or "A" into?
0
 
LVL 13

Expert Comment

by:LIONKING
ID: 35044165
In what table do you save the values "X", "T", or "A"? Because if it's in the attendence_classes table I think you're missing a field there... And I don't see the date field either, or are you just gonna save the name of the day?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:amyamo
ID: 35044274
You are absolutely correct, I didn't have either of those in there. I added them now and am reposting my database.
Are you able to point me in the right direction now for creating the form for the instructor to enter the attendance each week for each class for each student?
thank you

sampledb0311.accdb
0
 
LVL 13

Expert Comment

by:LIONKING
ID: 35044431
You still need to add the studentID to the Attendance_Class table, otherwise you're just saving the attendance for a specific class on a specific day, but no student involved.

Check out the form I added to your database, all I did was change some textboxes to combobox. Once you do this you change the rowsource property to a query (querying the table with the ID and description fields), and you establish the dependant column to the ID column (number, not name). After that you'll be able to select from dropdowns, instead of having to memorize the codes.

Check it out and let me know if this helps as a start point for what you want. sampledb0311.accdb
0
 

Author Comment

by:amyamo
ID: 35046581
Thank you!!
 I'm going to check out the database you posted now
0
 

Author Comment

by:amyamo
ID: 35046620
I looked at the form you created, thank you-
but the problem I'm having is trying to figure out how to get it to look like I want. if you look at the PDF I had originally attached - I want to be able to show all of the days of the week going across and then the classes listed vertically - I don't understand how I can take what you did for me and have all of the fields available for the instructor to enter in the AbsentChoice - Do I need to create something new for each day and class?
thank you
0
 
LVL 13

Accepted Solution

by:
LIONKING earned 250 total points
ID: 35056769
I don't know if you can make the form that way using only the form assistant, because that would mean one of two options:
a. Having static classes for each student, hence having the labels statically placed in the form, or,
b. Having to dynamically create the labels (downward) and textboxes for each class the student signed up to.

Option A should not be considered because that would limit the number of classes each student could have. And option B would require some coding to dynamically create the labels and textboxes/dropdowns, and you'd also have to dynamically create the SQL sentence to insert the data according to the classes.

I'm not saying that what you want is impossible, I'm just saying that by code it would be pretty tough to achieve. And unless another expert knows if you can make like a pivot table (or cross-tab) to insert your data, I'm pretty much out of ideas on how to get what you want with your form.
Sorry for not providing a helpful solution here.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

820 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