我正在构建一个培训database.The表,我使用的是:员工、培训课程、培训中的培训和完成的培训。我有一个查询,该查询从表单中筛选出来,以显示未接受培训的员工。
我想在结果旁边添加一个复选框,这样我就可以选择要添加到In培训表中的部分或全部内容。几天来,我一直被困在这上面,在互联网上搜索,阅读书籍,寻找答案。
发布于 2011-09-05 03:14:14
刚刚看到了这个问题。以下是解决这个问题的另一种解决办法。没有复选框,但您将获得一个带有组合框的子表单,以更新特定员工的课程和进度。
- tblEmployees
- EmployeeID (Primary Key)
- EmployeeName (and any additional fields you might need)
- tblProgress -> this stores "IN TRAINING", "COMPLETED" as 2 separate records
- ID (AutoNumber) (Primary Key)
- ProgressDesc
- tblTrainingCourses
- CourseID (Primary Key)
- CourseName
- tblEmployeeTraining -> here we are using composite key
- EmployeeID (Primary Key)
- CourseID (Primary Key)
- Progress
通过选择EmployeeID.
- CourseID
- Choose the tblTrainingCourses as the table for the Lookup Values
- Progress
- Choose the tblProgressas as the table for the Lookup Values
如果不希望步骤2中的关系,可能需要在删除员工数据之后存储它,那么需要创建一个查询并将其用作子表单的RecordSource。您可能希望在tblEmployees中添加一个字段,以确定员工是否处于活动状态,而不是从tblEmployees中删除该记录。然后,您可以使用上述步骤,只需对表单进行筛选,以显示那些活动员工。
https://stackoverflow.com/questions/6962203
复制相似问题