简体   繁体   English

如何在连续子表单中使用未绑定复选框 - MS Access 2013

[英]How to use unbound checkbox in a Continuous Subform - MS Access 2013

I'm fairly new to Access and having a really hard time figuring out each and every bit of it.我对 Access 相当陌生,很难弄清楚它的每一点。 Now I want to have a grid containing rows fetched from a query and a checkbox for every row.现在我想要一个包含从查询中获取的行和每行的复选框的网格。 Here's what I want:这是我想要的:

  1. User should be able to select individual checkbox to select the row.用户应该能够选择单个复选框来选择行。
  2. A "Select all" checkbox to select all rows. “全选”复选框以选择所有行。
  3. Only upon clicking a button the rows must be updated只有在单击按钮时,行才必须更新

I have我有

  1. Created a form.创建了一个表单。
  2. Added a Continuous Subform and the Rowsource has a checkbox bound to a Yes/No field.添加了一个连续子表单,行源有一个绑定到是/否字段的复选框。

I'm stuck at this point.我被困在这一点上。 Please refer to the attached image and help me figure this out.请参考所附图片并帮助我解决这个问题。 Please suggest some good tutorials with practical examples.请推荐一些带有实际例子的好教程。 Thanks a lot.非常感谢。在此处输入图片说明

Use the clsCCRecordSelect class from SelectRecordsV2 .使用SelectRecordsV2 中clsCCRecordSelect类。 There are samples in the download db , but comments are in german lang (I can translate if needed). 下载 db 中有示例,但评论是德语语言(如果需要,我可以翻译)。 If you need advice in implementing this to your form show form.name, form recordsource and control names of detail section (you need one control with unique values to assing the checkboxes to a record, can be invisible).如果您需要建议在您的表单中实现这一点,请显示 form.name、表单记录源和详细信息部分的控件名称(您需要一个具有唯一值的控件来将复选框分配给记录,可以不可见)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM