Custom row source for combo box in continuous form in Access

后端 未结 13 2237
北恋
北恋 2020-12-06 01:34

I have searched around, and it seems that this is a limitation in MS Access, so I\'m wondering what creative solutions other have found to this puzzle.

If you have a

13条回答
  •  没有蜡笔的小新
    2020-12-06 02:16

    I don't think that Access continuous forms should be condemned at all, but I definitely believe that they should be avoided for EDITING DATA. They work great for lists, and give you substantially more formatting capabilities than a mere listbox (and are much easier to work with, too, though they don't allow multi-select, of course).

    If you want to use a continuous form for navigation to records for editing, use a subform displaying the detailed data for editing, and use the PK value from the subform for the link field. This can be done with a continuous form where you place a detail subform in the header or footer, linked on the PK of the table behind the continuous form.

    Or, if you are using a continuous form to display child data in a parent form, you can link the detail subform with a reference to the PK in the continuous subform, something like:

    [MySubForm].[Form]!MyID
    

    That would be the link master property, and MyID would be the link child property.

提交回复
热议问题