jmoises
Active Member
Hello i need help here to figure out how to acomplish my goal
I have a Form to add Students that not were present to make a TEST
What i have in my form 2 Databasejoin elements first is Student Name and second is Test Name
In my first element Student Name have a list of all the Students
In my Second element i have the List of Test
What i need to do is to refresh second element after the user select a Student Name, and not to populate the Test Name that Student has all ready miss, only the test is need to do. (i dont want to report 2 times same studen if he miss a test all ready reported)
I have add this code in second element in the area "Joins where and/or order by statement (SQL)"
WHERE NOT
EXISTS (SELECT test_id
FROM test_not_done
WHERE test_not_done.test_id = test.id
AND test_not_done.student_id = 1)
And i am able to not show test the student all ready miss for the student id 1 but i dont know how can change the 1 for the databasejoin Element Student Name (id) selected.
The Table / form structed is:
test_not_done___id
test_not_done___date_time
test_not_done___student_id
test_not_done___test_id
test_not_done___reason
test_not_done___time
Thank for any direcction i have been working days trying to figure out
I have a Form to add Students that not were present to make a TEST
What i have in my form 2 Databasejoin elements first is Student Name and second is Test Name
In my first element Student Name have a list of all the Students
In my Second element i have the List of Test
What i need to do is to refresh second element after the user select a Student Name, and not to populate the Test Name that Student has all ready miss, only the test is need to do. (i dont want to report 2 times same studen if he miss a test all ready reported)
I have add this code in second element in the area "Joins where and/or order by statement (SQL)"
WHERE NOT
EXISTS (SELECT test_id
FROM test_not_done
WHERE test_not_done.test_id = test.id
AND test_not_done.student_id = 1)
And i am able to not show test the student all ready miss for the student id 1 but i dont know how can change the 1 for the databasejoin Element Student Name (id) selected.
The Table / form structed is:
test_not_done___id
test_not_done___date_time
test_not_done___student_id
test_not_done___test_id
test_not_done___reason
test_not_done___time
Thank for any direcction i have been working days trying to figure out