Ollie_3670
Registered User.
- Local time
- Today, 12:44
- Joined
- Feb 1, 2010
- Messages
- 50
Searched the internet, searched the forum. One thing I just don't understand is how you actually use these. I must be insanely stupid.
I've made all the needed queries, I've made a combo box which uses a query to display all courses (2 columns, course_code and Course_Name) and all the queries ready to be read by the textbox
Here is a sql example of a query, that i've added line spaces in for legibility:
SELECT TblCourse.Course_Code, Count(TblStudent.EU_Status) AS CountOfEU_Status
FROM TblCourse INNER JOIN (TblApplicationHeader INNER JOIN (TblStudent INNER JOIN TblApplicationLine ON TblStudent.Student_ID = TblApplicationLine.Student_ID) ON (TblStudent.Student_ID = TblApplicationHeader.Student_ID) AND (TblApplicationHeader.Application_ID = TblApplicationLine.Application_ID)) ON TblCourse.Course_Code = TblApplicationLine.Course_Code fyi, I know this inner join is monstrous, but it's access generated...obviously!
WHERE (((TblStudent.EU_Status)="EU National") AND ((TblApplicationLine.Offer_Type)="CF"))
GROUP BY TblCourse.Course_Code;
Now I do not know how to basically select a course from the combo box, and then have an automatically textbox tell me the "Count(TblStudent.EU_Status) AS CountOfEU_Status" part.
I know I need to set the control source of the textbox to something fancy, I know that with my query I need to tell it where to find the course_code rather than displaying all of them that contain 1 or more results. But the question to all is how. I have about 12 textboxes all needing this done, but once I've done one I'll be sorted!
all I need is a template I can understand of the information I need to put into both of the above rather than the exact answer.
teach a man how to fish and he'll eat for life and all that...
I've made all the needed queries, I've made a combo box which uses a query to display all courses (2 columns, course_code and Course_Name) and all the queries ready to be read by the textbox
Here is a sql example of a query, that i've added line spaces in for legibility:
SELECT TblCourse.Course_Code, Count(TblStudent.EU_Status) AS CountOfEU_Status
FROM TblCourse INNER JOIN (TblApplicationHeader INNER JOIN (TblStudent INNER JOIN TblApplicationLine ON TblStudent.Student_ID = TblApplicationLine.Student_ID) ON (TblStudent.Student_ID = TblApplicationHeader.Student_ID) AND (TblApplicationHeader.Application_ID = TblApplicationLine.Application_ID)) ON TblCourse.Course_Code = TblApplicationLine.Course_Code fyi, I know this inner join is monstrous, but it's access generated...obviously!
WHERE (((TblStudent.EU_Status)="EU National") AND ((TblApplicationLine.Offer_Type)="CF"))
GROUP BY TblCourse.Course_Code;
Now I do not know how to basically select a course from the combo box, and then have an automatically textbox tell me the "Count(TblStudent.EU_Status) AS CountOfEU_Status" part.
I know I need to set the control source of the textbox to something fancy, I know that with my query I need to tell it where to find the course_code rather than displaying all of them that contain 1 or more results. But the question to all is how. I have about 12 textboxes all needing this done, but once I've done one I'll be sorted!
all I need is a template I can understand of the information I need to put into both of the above rather than the exact answer.
teach a man how to fish and he'll eat for life and all that...
Last edited: