Access continuous form: Add a control without modifying the underlying table?

前端 未结 3 921
闹比i
闹比i 2021-01-14 01:30

I\'m making a simple Access form (continuous view). This has a checkbox in the Details section and a Command button in the footer.

This way, the user can use the ch

3条回答
  •  长情又很酷
    2021-01-14 02:20

    You can most certainly do this. You simply bind the checkbox to a VBA function as it data source.

    That function can return true/false based on say the PK of the row and you store the values in a collection.

    I have a working sample here:

    http://www.kallal.ca/msaccess/msaccess.html

    Grab the multi-select example.

    So the posts here claiming that you cannot do this or you need a column or one needs to use some disconnected recordsets ARE ALL 100% WRONG

提交回复
热议问题