Hi,
I have a form that populates a table.
One of the fields in the form can have multiple answers
I will use colours as an example, because what I have is actually more complicated than what I am showing!
Say for example the ball is green and blue.
This needs to be saved in one field on the table.
The options for colour are saved in another table, in the form:
[tt]
| ID | Colour |
|----+--------|
| 1 | Green |
| 2 | Red |
| 3 | White |
| 4 | Blue |
| 5 | Yellow |
| 6 | Black |
[/tt]
When the user selects more than one option from the ListBox, the ID's of the corresponding colours are entered into the form field using VB, for the example above: [tt]1,4[/tt]
This is fine, because the user never sees the ID's, only the text for the colour.
If at a later date, it is decided that blue is no longer blue, and it should be yellow, the table can be changed and the records will now show [tt]green and orange[/tt] still in the original form "1,4".
The problem I have is with reporting.
I can obviously get it to return [tt]1,4[/tt] but I can't for the life of me find out how to get it to return [tt]green and blue[/tt] or [tt]green and orange[/tt], whichever it is decided to be.
Any suggestions greatly appreciated.
Aubs
I have a form that populates a table.
One of the fields in the form can have multiple answers
I will use colours as an example, because what I have is actually more complicated than what I am showing!
Say for example the ball is green and blue.
This needs to be saved in one field on the table.
The options for colour are saved in another table, in the form:
[tt]
| ID | Colour |
|----+--------|
| 1 | Green |
| 2 | Red |
| 3 | White |
| 4 | Blue |
| 5 | Yellow |
| 6 | Black |
[/tt]
When the user selects more than one option from the ListBox, the ID's of the corresponding colours are entered into the form field using VB, for the example above: [tt]1,4[/tt]
This is fine, because the user never sees the ID's, only the text for the colour.
If at a later date, it is decided that blue is no longer blue, and it should be yellow, the table can be changed and the records will now show [tt]green and orange[/tt] still in the original form "1,4".
The problem I have is with reporting.
I can obviously get it to return [tt]1,4[/tt] but I can't for the life of me find out how to get it to return [tt]green and blue[/tt] or [tt]green and orange[/tt], whichever it is decided to be.
Any suggestions greatly appreciated.
Aubs