- Local time
- Today, 17:50
- Joined
- Feb 19, 2002
- Messages
- 46,956
Using an EAV model can simplify your life and dramatically reduce the number of fixed columns, but it will work best if the "data" isn't actually used for anything except data entry and display. Typically, you will have a high level table that has all the common or semi/common fields. Plus the fields that need to be indexed or searched on. Then there would be a child table using the EAV pattern which can be used to describe pretty much anything. Keep in mind that the EAV table will usually have only a text field to hold all types of values including dates. That means you need a way of identifying what type of data the value is. I always have a table that defines the EAV table. So, you define all the data fields and their types. Then when the user enters data, they pick the column name from a list and enter the data. You validate based on the type. So, if the data is supposed to be a date, YOU need to validate that it is a valid date since Access can't help you. Same for numeric values.