Hello Everyone, I am unable to figure out the difference between ComboBox LimitToList property and ShowOnlyRowSourceValues property in Microsoft Access.

Shreyas 0 Reputation points
2023-08-24T01:02:04.94+00:00

I mean, Is it not true that only what's in the Row Source can be seen in the List? How can you make display something that's not in the Row Source?

Thanks for your assistance in advance!

Access
Access
A family of Microsoft relational database management systems designed for ease of use.
420 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
893 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Karl Donaubauer 2,056 Reputation points MVP
    2023-08-24T14:18:09.48+00:00

    Hi,

    The property ShowOnlyRowSourceValues only applies to multi value fields (MVF). (see the last item in this documentation table)
    One "practical" use example I can see is, when in a MVF you had chosen a value from the list that afterwards has been deleted from the list. In case of Yes the value will not be shown any more, in case of No it will still be shown in the combo text box and in the combo list.

    There have to be other practical uses like this one here which however I didn't understand. ;-)

    Servus
    Karl


    Access Bug Trackers
    Access News
    Access DevCon
    Access-Entwickler-Konferenz AEK


  2. Ken Sheridan 2,846 Reputation points
    2024-12-12T00:09:18.42+00:00

    As has been explained, the LimitToList property allows other values than those returned by the RowSource property to be entered into the control. Proceed with caution, however. If used when inserting a value into a foreign key column this would of course mean that it would not be possible to enforce the relationship between the referencing table and the referenced table from which the RowSource draws its values. I find it hard to envisage a situation in which this would be appropriate.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.