The text in combobox disappear after I shift to next row in Subform

Karim Vazirinejad 186 Reputation points
2021-04-05T08:53:59.1+00:00

I have a subform that the user can select the material that should send to production line. Because the material variety is a lot, I used two unbound comboboxes that filter the material based on the category and classification and after that the user caqn select the specified material in third combobox that is filtered. It works fine but I have a problem after the user shift to next row.
When the user shift to next row to select another material, the text in the above combo box disappear. I searched it on the web and found it is a common problem. but I couldn't find a good solution for it.
Could you help me.

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.
908 questions
Office Visual Basic for Applications
Office Visual Basic for Applications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Visual Basic for Applications: An implementation of Visual Basic that is built into Microsoft products.
1,506 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ken Sheridan 2,851 Reputation points
    2021-04-05T18:04:43.537+00:00

    You might like to take a look at DatabaseBasics.zip in my public databases folder at:

    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169

    In this little demo file the second form in the section on 'entering data via a form/subforms' is a contacts form in continuous forms view. In this form the country, region, and city combo boxes are correlated so that a selection in one restricts the values listed in the next. The behaviour which you describe is avoided by the use of 'hybrid' controls in which a read-only text box is superimposed on a combo box to give the appearance of a single combo box control.

    The form is bound to a query in which the referenced cities, regions, and countries tables are included, in addition to the contacts table. Each of the superimposed text boxes is bound to the relevant text column from one of the referenced tables.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. DBG 2,376 Reputation points
    2021-04-05T13:59:46.543+00:00

    Hi. One solution is to overlay a bound Textbox on top of your Combobox to display the selected material.

    1 person found this answer helpful.
    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.