horton_brian
New member
- Local time
- Yesterday, 21:57
- Joined
- May 4, 2010
- Messages
- 9
Using the wizard I've ended up with two different ways to handle the Combo Box list of values for two fields called 'Team Involved' and 'Role of Witness'; both use a separate lookup table to store the value list. When the table is opened in Access, in one case the field stores the id of the chosen value, in the other it stores the value itself, but the two are the opposite way round to what I'd expect from the field's data type:
1) The Team Involved Data Type is Number with Lookup Row Source Type 'Table/Query' and Row Source:
SELECT [Team Involved Lookup].ID, [Team Involved Lookup].[Team Involved Lookup] FROM [Team Involved Lookup] but this field appears to store the full text of the team name;
2) The Role of Witness Data Type is Text with Row Source Type 'Value List' and Row Source 'Role of Witness Lookup' but this field appears to store the id number of the team name;
Both work OK so far, but what are the pro's and con's of each method, how did they end up different and does Team Involved really store the text string name when it's a Numeric field, or is the Access Table Viewer doing a lookup under the covers?
Brian
1) The Team Involved Data Type is Number with Lookup Row Source Type 'Table/Query' and Row Source:
SELECT [Team Involved Lookup].ID, [Team Involved Lookup].[Team Involved Lookup] FROM [Team Involved Lookup] but this field appears to store the full text of the team name;
2) The Role of Witness Data Type is Text with Row Source Type 'Value List' and Row Source 'Role of Witness Lookup' but this field appears to store the id number of the team name;
Both work OK so far, but what are the pro's and con's of each method, how did they end up different and does Team Involved really store the text string name when it's a Numeric field, or is the Access Table Viewer doing a lookup under the covers?
Brian