I guess you looked at the Properties window of the ListBox?
The Value Property does not exist in DesignView and the Properties window is
mainly used in DesignView and therefore, the Value Property is not included
in this window. It only exists in FormView, i.e. when you are running the
Form and in fact, it is the default Property. "Default" here means that if
you simply use, for example:
MyVariable = Me.ListBox
Access VBA will interpret that you mean (in most cases):
MyVariable = Me.ListBox.Value
Thus "default" here means that you don't have to explicitly use the word
"Value" to refer to the Value of the ListBox.
If you know how to use the ObjectBrowser in the IDE (i.e. the code window),
you will see that Value is a Property of the ListBox object with a blue dot
in its icon to signify that it is the default Property.
OTOH, "Default Value" means that if you use the Form to enter a new Record,
the row that corresponds to the value you set as DefaultValue will be
automatically highlighted and unless you change the selection in the bound
ListBox to another row, this value will be stored in the Table when the
Record is saved.
--
HTH
Van T. Dinh
MVP (Access)
"Tom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I cant seem to find value amongst the list of
> properties, only the Default Value.
>
>
> "Van T. Dinh" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> If your question is:
>>
>> Is the Value the default *Property* (of the ListBox)?
>>
>> then the answer is yes. However, the ListBox also has the Property
>> "Default
>> Value" which is a different Property.
>>
>> --
>> HTH
>> Van T. Dinh
>> MVP (Access)
>>
>>
>>
>> "tom" <(E-Mail Removed)> wrote in message
>> news:zJobh.17066$(E-Mail Removed)...
>> >
>> >
>> > Thank you, is the Value property the Default Value?
>> >
>>
>>
>
>
|