I have a database and I want the user to be able to define fields (with different field types) and then open a form which reads the fields and allows data to be added.
This is for a sort of contact manager application which I have predefined with normal tables/field, etc. But the client(s) will want to add lots of unique info for each contact. These may be numbers, strings, drop-down lists, etc.
I don't really know where to start and hoped someone might have done it already. I have been working on something like below which sort of works. My main problem with this is displaying the data in a form...
tblFields
---------
intFieldID strFieldType strFieldName
-------------------------------------------------------
1 string Favourite Football Team
2 integer Send Christmas Card
3 combo Contact Rating
tblCombos
---------
intComboID intFieldID strCombo
1 3 Gold
2 3 Silver
3 3 Bronze
tblData
-------
intDataID intFieldID intContactID strDetails
------------------------------------------------------
1 1 1 Manchester United
2 1 2 Chelsea
3 2 1 -1
4 2 2 0
5 3 1 Gold
6 3 2 Silver
This is for a sort of contact manager application which I have predefined with normal tables/field, etc. But the client(s) will want to add lots of unique info for each contact. These may be numbers, strings, drop-down lists, etc.
I don't really know where to start and hoped someone might have done it already. I have been working on something like below which sort of works. My main problem with this is displaying the data in a form...
tblFields
---------
intFieldID strFieldType strFieldName
-------------------------------------------------------
1 string Favourite Football Team
2 integer Send Christmas Card
3 combo Contact Rating
tblCombos
---------
intComboID intFieldID strCombo
1 3 Gold
2 3 Silver
3 3 Bronze
tblData
-------
intDataID intFieldID intContactID strDetails
------------------------------------------------------
1 1 1 Manchester United
2 1 2 Chelsea
3 2 1 -1
4 2 2 0
5 3 1 Gold
6 3 2 Silver