• List Boxes should trigger Edit Mode (Access 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » List Boxes should trigger Edit Mode (Access 2003)

    Author
    Topic
    #454980

    Hi, all. I have a feeling i should know the answer to this, but I can’t figure it out, so be gentle!

    In a nutshell, I have very simple database with a form linked to a table. The table has only three fields. Two of those fields have a limited number of choices for acceptable values. So, when I designed the form, I used a List Box for those two fields; I linked the Control Source to the appropriate field in the table; I set the Row Source Type to a Value List; and I entered the acceptable values in the Row Source property (e.g. the “Importance Rating” field can be “1;2;3;4;5;6;7”)

    Oh, and because the records are so small, I set the form to display as a continuous form (for what that’s worth.)

    Now the thing is, when the form is displayed and the user selects a different value from either List Box, I expected the record to kick into “Edit mode” (displaying the pencil icon to the left of the record.) What I see instead (aside from those two fields displaying as “highlighted” white text in a black text box, which perplexes me,) is that the form displays the new choice for the record, but it does not update the record with that value. And I found that what DOES work is if I click INSIDE the field first, before picking a new value form the list box.

    Can someone fill me in on what’s going on and/or what I may have missed? is this going to be one of those things where I smack myself on the forehead afterwards? Thanks in advance for your help.

    Viewing 0 reply threads
    Author
    Replies
    • #1130871

      Have you actually bound the list boxes to the fields, i.e. set their Control Source to the name of the relevant field? It works for me if I do that (whether I use the mouse or the keyboard).

      • #1130874

        Yep. And that’s what adds to my confusion. I’m attaching a screen cap that shows both the Form (continuous) and the data property of the first drop-down.

      • #1130875

        OK, what I found, and what I’m going with, is that a Combo-box works just as I’d expect. I’ll just set the “Limit to List” property to “Yes”, and it will give me the functionality I expect (i.e. no weird highlighting, no having to click in a field before using its pick-list.)

        I guess I just can’t impose my will on Microsoft Access.

        • #1130882

          Your screenshot showed list boxes that display only one item; in such a situation a combo box is more convenient, so that was going to be my next suggestion anyway.

    Viewing 0 reply threads
    Reply To: List Boxes should trigger Edit Mode (Access 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: