3

There is a combo box (dropdown list) with a list of revenue types. If the user types into the box a value that is not part of the list, a msgBox pops up and asks them if they want to add that value to the list.

Here is my problem: In that msg box, I want to give the user a combo box list of revenue groups to choose from (so that the essence of the dialog is "oh, you want to add a new revenue type. Now pick which revenue group it's from).

Is there any way to add a combo box to a msgBox?

4

2 に答える 2

6

いいえ、ありません。通常の解決策は、小さなフォームを作成し、それをダイアログとして使用することです。

 DoCmd.OpenForm "TheCustomFormName",acNormal,,,,acDialog
于 2010-02-25T15:55:13.407 に答える
2

Arvin Meyer の MsgBox 置換フォームを試してみてください。

http://www.datastrat.com/Download/MsgBox2K.zip

私は使ったことはありませんが、Arvin は Access の長年の第一人者です。

価値があるのは、あなたが説明しているのはメッセージボックスではなくダイアログであるため、その場合はカスタムダイアログフォームを設計することです.

Dmitri Furman も MsgBox の代替品を持っています:

http://iridule.net/cu/files/mboxfunction.zip

...しかし、彼はより単純な代替品のように聞こえ、おそらくあなたの状況には役に立たないでしょう. 完全を期すためにリンクを含めます。

于 2010-02-25T19:27:01.360 に答える