MS Access: An error in vba of my form

后端 未结 1 1987
感情败类
感情败类 2021-01-19 03:38

I have a simple MS Access form that has 3 objects: a text box, a list box, and a button. The intended use of the form is as follows: the user enters a name in the text box,

1条回答
  •  一生所求
    2021-01-19 04:17

    The .Text property can only be used when the TextBox has focus. Try using the .Value property instead.

    Try replacing the below line

    CustomerName = Customer_TextBox.Text
    

    with

    CustomerName = Customer_TextBox.Value
    

    0 讨论(0)
提交回复
热议问题