开发者

TDataSource TDBMemo not in Insert or Browse mode

开发者 https://www.devze.com 2023-02-03 06:43 出处:网络
I have a DBLookupComboBox that lists values from 1 table that I\'m selecting a value from. When the value is selected, I want the 2 DBMemo Boxes I have to be able to input/edit into to insert/update

I have a DBLookupComboBox that lists values from 1 table that I'm selecting a value from.

When the value is selected, I want the 2 DBMemo Boxes I have to be able to input/edit into to insert/update into another table.

开发者_运维百科

But They don't allow me to enter into them. I assume because it's state is dsInactive.

How do I do this?

Thanks!


If the state is dsInactive, that means that the dataset isn't active, so it can't be edited. In your setup code, try saying MyDataset.Active := true;. This will fire its query and load the results into the dataset for you to view and edit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号