473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking two tables' data in a subform

I have a subform that allows entry of student test results. Once the
user inputs the test score and the test ID, I would like the subform to
query a look up table and populate a column on the row that the users
is on to show the level of the student, based on the test result.

TBL StudentTest has StudentID, TestID, TestDate, TestScore
TBLLkup Level has LevelName, TestMaxScore

Is it possible to do this on a subform where there are multiple rows of
student test results displayed? Ideally, the column for student level
would be populated as soon as the user updates the test score column,
and it would not be editable, but it would get stored with the rest of
the data in the row in the Student Test table. Or should I just leave
the test level out of the Student Test table and only query it when
it's needed on a report?

One last thing - when doing the look up, I have to query based on the
student's test score, but the look up table contains only the max test
score for a particular level. So, if a student scores 200, that would
translate to Level 2 where Level 1 max test score is 190 and Level 2
max test score is 210.

Nov 13 '05 #1
2 1410
sounds like you should base the subform on a query and have a formula
to determine the value of the expression you describe. MaxScore? you
can use DMAX or some other method to get that. Why are you storing it?

Nov 13 '05 #2

pi********@hotmail.com wrote:
sounds like you should base the subform on a query and have a formula
to determine the value of the expression you describe. MaxScore? you can use DMAX or some other method to get that. Why are you storing

it?

I have to store the max because the student's level is determine by
what their test score is in relation to a range of test scores. Rather
than store the whole range, I just store the maximum. Then I query to
find the level based on where student test score <= max test score.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3183
by: Tony Williams | last post by:
I have two tables one lists the names of committees and the other is a list of documents they generate. I have a form based on the documents table which gives details of the document including...
0
2215
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
1
3081
by: New2Access | last post by:
I posted this yesterday but perhaps I wasn't clear enough. I have a table called History with 4 fields "Week" "Employee" "Project" and "Hours" Each of those fields (except Hours) are based on...
11
4501
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
1
1409
by: Gary T. | last post by:
I have a table called tbl_QuoteDetails QuoteNo Prim Key fkeyProductID foreign key Paneltype Length Price Another table called tbl_Product: ProductID Primary Key ProductName
1
2695
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
4
1687
by: Gari | last post by:
Dear All, I’ve been using this forum since three weeks now and I always had the answer to my questions. So this encourages me to use it again but I hope I am not annoying anybody. I am trying...
2
8375
by: darnel | last post by:
I have 4 hierarchical tables and want to display it all together as a form and 3 subforms, when subform displays (and allow to add/edit) only relevant items from each superior subform. Tables are:...
3
1885
by: BASSPU03 | last post by:
(I'm using Access 2003 on a Windows XP O/S.) I have four tables that are related in the following order: tblFiscalYear > tblBulkObligations > tblProjects > tblResources These are their...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
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...
1
7034
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
7488
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...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.