I’m trying to create a personal book database. I created by my table with ID, title, author, genre, publisher, shelf number and cover image. I also created the related form without any issues. However, I don’t want to have insert a given author or genre every time it’s repeated. What do you suggest? I was thinking about a drop down menu or an autofill of some sort every time I inserted a name or genre’s first words. Do I need to create more tables?
I would create separate tables for author and genre and link this tables by foreign key to you main table.
If you do so you could choose author and genre by a listbox. It will show the author/genre and insert the key value. But: You have to fill this separate tables first. You could only choose values, which are part of the tables.
.
You could use only your one table solution. Switch the fields for author and genre to comboboxes. Create a selection like
SELECT DISTINCT "author" FROM "table" ordered by "author"
This will show all different authors you have inserted. You could also add new authors in the combobox. Will be shown also in the box after refreshing the box.
(post deleted by author)
This sample by cpb is the best representation of what you may want. Modify it to fit your needs!
(post deleted by author)