Hi all
I am a newbie when it comes to access. My company requires that all Databases run on the company SQL back-end as a result i have a Access project that connects to the server.
I have two tables, table 1 called tblProjectDetai ls, table 2 called tblLearners
The fields in tblProjectDetai ls are
I have created two bound combo boxes and the idea is that one of my staff members can select the project first(called cboProject), once that is done then the second combo box would show the appropriate learners(called cboLearner).
I have the following code as an after update event for cboProject
frmProjectMange rTracking - is the main form that i am using
subfrmlinkin - is the subform that i am using. the name is temporary until i solve my problem
When i execute the cascading combo box cboLearner is blank. Can somebody please show where i am going wrong?
Thanks in advance
I am a newbie when it comes to access. My company requires that all Databases run on the company SQL back-end as a result i have a Access project that connects to the server.
I have two tables, table 1 called tblProjectDetai ls, table 2 called tblLearners
The fields in tblProjectDetai ls are
Code:
ProjectPK numeric (Its also the Primary Key)] Name char (50) Description char (50) There are other field but they dont play a role in the comboboxes The fields in tblLearners are LeanerPk numeric (Primary Key) Surname char (50) FirstName char (50) ProjectNo numeric
I have the following code as an after update event for cboProject
Code:
cboLearner.RowSource = "SELECT * from tblLearners WHERE ProjectNo = " & [Forms]![frmProjectMangerTracking]![subfrmlinkin]![cboProject]
subfrmlinkin - is the subform that i am using. the name is temporary until i solve my problem
When i execute the cascading combo box cboLearner is blank. Can somebody please show where i am going wrong?
Thanks in advance
Comment