简体   繁体   中英

How to hide blank/empty cells from combo box?

I have a table/query in Access and some cells are empty.

见图片

If I open the Anime combo box there are 3 more empty cells because of the other cells like English Series, Japanese Series and Movie.

组合框

Is there any way to hide the empty cells from the combo box and only show anime? (and the same for the other combo boxes.)

Right click the Combo Box and on the bottom press Properties.

At the Data tab, in the Row Source (which is the second one). There I have added the following string at the end:

WHERE Anime <> "";

Now it says:

SELECT CollectionQuery.[Anime] FROM CollectionQuery WHERE Anime <> "";

Making it ignore all that is empty and only show fields in the combo box with value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM