T
Tommy T
Here is my situation. 2 Questions both related.
Question 1: I have a query with two tables. Table1 concerns individuals and
the states that they have visited with a maximum of 3 states. Table2
contains 2 fields a numeric Primary Key(Table2.PriKey) and the names of US
States(Table2.StateName).
I have created 3 lookup fields in Table1 to reflect the states that the
individuals have visited: Table1.State1, Table1.State2, and Table1.State3
with the bound column being Table2.PriKey.
If I add State1, State2, and State3 within the QBE the state names will
display e.g. (Maine, Maryland, Massachusetts) however if I concatenate them
like this CombineStates: [Table1]![State1] & ", " & [Table1]![State2] & ", "
& [Table1]![State3] I receive 19, 20, 21. I know that it is a string
concatenation but how do I convert the numbers to StateNames and Concatenate
them?
Question 2: in the Relationships Window Table2(the States Table) only
displays once versus 3 times with a relationship to Table1.State1 and not
to Table1.State2 or Table1.State3 even though Table1.State2 and
Table1.State3 are bound to Table2.PriKey. Is this by design or am I missing
something?
Everyone thanks for all your help
Tom "T"
Question 1: I have a query with two tables. Table1 concerns individuals and
the states that they have visited with a maximum of 3 states. Table2
contains 2 fields a numeric Primary Key(Table2.PriKey) and the names of US
States(Table2.StateName).
I have created 3 lookup fields in Table1 to reflect the states that the
individuals have visited: Table1.State1, Table1.State2, and Table1.State3
with the bound column being Table2.PriKey.
If I add State1, State2, and State3 within the QBE the state names will
display e.g. (Maine, Maryland, Massachusetts) however if I concatenate them
like this CombineStates: [Table1]![State1] & ", " & [Table1]![State2] & ", "
& [Table1]![State3] I receive 19, 20, 21. I know that it is a string
concatenation but how do I convert the numbers to StateNames and Concatenate
them?
Question 2: in the Relationships Window Table2(the States Table) only
displays once versus 3 times with a relationship to Table1.State1 and not
to Table1.State2 or Table1.State3 even though Table1.State2 and
Table1.State3 are bound to Table2.PriKey. Is this by design or am I missing
something?
Everyone thanks for all your help
Tom "T"