I have the following two ms-access tables:
Employee table:
EmployeeID
Name
etc.
Project table:
ProjectID
EmployeeID
ProjectDescription
Each Employee can manage zero or more projects.
I know how to use the DataSet
Designer to add the Employee table as details (multiple bound controls) on Form1
(Windows Form Application):
Dragging the Company database's Employee table (as details) to form creates the following components:
• CompanyDataSet
• employeeBindingSource
• employeeTableAdapter
• tableAdapterManager
• employeeBindingNavigator
How do you add a ListBox to Form1 that displays the ProjectDescription of all the projects the currently displayed Employee manages? What ListBox properties need to be set?
I believe I will need the following query:
SELECT Project.ProjectDescription FROM Project RIGHT JOIN Employee ON Project.EmployeeID = Employee.EmployeeID WHERE EmployeeID = ?
Parameter would be the employeeIDtextbox.Text
Project records will be created programmatically (OleDbConnection, OleDbCommand) from Form2. What statement is required to update Form1 when it is displayed?
I have searched the web and read pages and pages of Microsoft documentation and have hit a wall...