2013-07-28 19 views

回答

0

为此,您需要使用更新事件后的列表框。它将返回用户输入的内容到usrValue。您需要将List0更改为您的访问应用程序中控件的名称。

Private Sub List0_AfterUpdate() 
    Dim usrValue As String 'what the user will by saving there value into. 
    If List0.Value = "OTHER" Then 
     usrValue = InputBox("Please enter a value for me", "Need something") 
    End If 
End Sub 
+0

谢谢。我改变了,它的工作。将商店值字段更改为正确的:Private Sub List0_AfterUpdate() Dim usrValue As String usrValue = InputBox(“请为我输入一个值”,“需要的东西”) List0.Value = “OTHER” – pmoney

+0

@pmoney如果您的问题得到解答,请标记回答的问题。 – ObieMD5

相关问题