tags:

views:

73

answers:

1

i am passing values from a textbox into a sql statement in ACCESS

i do not understand the difference in the usage of these two properties

when i set the the .text property to something, how does the .value property get affected? when i do want something to be displayed in the textbox should i be using the value or text property?

+1  A: 

You can use the Text property to set or return the text contained in a text box or in the text box portion of a combo box.

To set or return a control's Text property, the control must have the focus, or an error occurs. To move the focus to a control, you can use the SetFocus method or GoToControl action.

You can use the Value property to determine or specify if a control is selected, the selected value or option within the control, the text contained in a text box control, or the value of a custom property.

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. In the following example, because the default value of the text box is the value of the Text property, you can refer to its Text property setting without explicitly specifying the name of the property.

Forms!frmCustomers!txtLastName = "Smith"

Text Property Reference
http://msdn.microsoft.com/en-us/library/aa173453.aspx

Value Property Reference
http://msdn.microsoft.com/en-us/library/aa173476.aspx

Robert Harvey