TextBox.Value property (Access)

Determines or specifies the text in the text box. Read/write Variant.

Syntax

expression.Value

expression A variable that represents a TextBox object.

Remarks

The Text property returns the formatted string. The Text property may be different than the Value property for a text box control. The Text property is the current contents of the control. The Value property is the saved value of the text box control. The Text property is always current while the control has the focus.

The Value property returns or sets a control's default property, which is the property that is assumed when you don't explicitly specify a property name.

Note

The Value property is not the same as the DefaultValue property, which specifies the value that a property is assigned when a new record is created.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.