473,394 Members | 1,841 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,394 software developers and data experts.

How to set table's field available for all records in a form.

Hi there!
I have two tables, tblStudents and tblSubjects each student is supposed to take all subjects. On data entry, I want to enter the records for a given subject for all students but When I hit next to enter the records for next subject I want the students names to remain constant so that I shouldnt have to enter the same student name for next subjects.
I went around the webs but couldnt find any helpful info. Please help me!
Oct 14 '10 #1
8 1147
Let make it clear,
I have to design a form in which I can enter data of both tblStudents and tblSubjects, Logically I dont have to enter students names everytime I enter new Subjects records. I want the student names to remain there unless otherwise decided even I hit next for new subject`s Scores.
Please Please I am new to Access help me!!!!
Oct 14 '10 #2
Jerry Maiapu
259 100+
Create a Parent Form (containing student detais)and a sub form ( subject details) Note: that tblstudents and tblsubjects should have 1:many realtionship.

If you're still confused attached your db here and I'll see what I can do for you. Am free this month.

Ta
Welcome to Bytes;
Jerry
Oct 15 '10 #3
Thanks for your imediate response!
In this example I want every Student to have all subjects assigned to by default. ie All subjects should be displayed at the Subform for every Single student.
tblStudents has the fields as follows:
StudID,
StudFname,
StudLname.
While tblModules has the following fields:
ModID,
ModName,
ModCredit,
StudID.
The relationship is between tblStudents.StudId=tblModules.StudID.
After creating a frmStudent(Mainform) with frmModules(SubForm) the following ocurs:
The records of tblStudent are displayed on the MainForm but the tblModules records are not.
What I want now from this design all Modules be assigned by default to all students so that I just hit next and enter the records for a given student at a given Modules
How can go about it?
Thanks in advance!
Oct 15 '10 #4
Thanks Jerry!
I am now registered in this forum.
I have attached sample db with this post.
You can see that the records of tblStudents are displayed on the form by defaut but the records for tblModules (on the SubForm ) are not.
What I want here these Modules(SubForm) be displayed automatically for every student selected on the MainForm.
How can I go about it?
Thanks in advance!
Attached Files
File Type: zip OneStudent.zip (27.2 KB, 47 views)
Oct 15 '10 #5
slenish
283 100+
What version of Access are you using? Tried to take a look at this but getting errors on opening...
Oct 16 '10 #6
Rename it with .mdb after downloading to convert to 2003 version. Am using 2010 Professional
Oct 16 '10 #7
Jerry Maiapu
259 100+
Because of your requirments and the relationships, you just have to copy and paste the subjects/modules for each student like I did as a start off.

The subject you previously entered did not appear in the subform because you entred them directly without relating to the students thus leaving them unrelated/unlinked to students.

If it is compulsory for every student to take all the listed courses then it would not be necsaary for you to include all the the subjects. Instead you should have only the fields that you would enter beacuse obviously all cousers would be uniform throughtout.

see attached File.
Attached Files
File Type: zip Example.zip (25.5 KB, 69 views)
Oct 18 '10 #8
Thanks, this is one step towards the solution.
There might be otherways of aproaching this that might include VBA.
Oct 18 '10 #9

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

Similar topics

1
by: james00_c | last post by:
Greetings- I need to pass multiple email addresses to a "sendto" hidden field in a form. I need to do that because "CC" and "BCC" are not an option. One address webmaster@xyz.com would be...
4
by: N. Graves | last post by:
Hello; I have a table that is equipment. This table has a filed called Owner and that Owner filed is Looked up from a table called employee. and the query request the serial number of the...
0
by: matthewemiclea | last post by:
I have a Coninuous form that is based on a table with the following fields: ID (Text) Qty (Number) COMPLETE (Check Box) Users will be going to this form and checking the...
5
by: AA Arens | last post by:
I have a huge list of records and deleted a few. This means that the ID-nummering contains holes. How to get it renummered? With Compact and Repair Database no success.
1
by: Robert Waggoner | last post by:
I have a table with MgmtRevID and MgmtRevDate I have another table that requires the MgmtRevID to be selected each time a record is created. Access 97 database How can I write code that will...
6
by: KevinPreston | last post by:
Hello everyone, this is my first post so apologies if i dont get it right first time, i am a self taught Access user, i am stuck on something i am trying to do, briefly i have 2 tables, one for...
2
by: sbitaxi | last post by:
I have a query that performs a simple sum, a running total essentially. I want to be able to use that in a calculation in a form but I can't seem to get it to display anything beyond #Name? ...
10
by: jmartmem | last post by:
Greetings, I have an ASP page with a 5x5 table embedded inside an Insert Record Form. This table contains several fields (mostly drop down list menus) and is used for corporate timekeeping (users...
1
by: sourcemb | last post by:
I have an Access database that has been developed using only the native Access tools and a few macros. I have found the need to use one of the controls on a form (contains a date field from one of...
3
by: Ron Mowry | last post by:
I am wanting to create a macro that will fill a specific field on a form and then go to the next record set. I have a blank field in the table that the form is pulling from. I want the user to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.