N
Neil Chelo
(Using Access 2003)
I had a report with the following text box that combined three fields.
=[city] & " " & [state] & " " & [postalcode]
I recently changed my table structure so [state] is now [fkStateID] which is
a lookup from tblStates.
When I changed my text box to =[city] & " " & [fkstateid] & " " &
[postalcode] the report displayed the primary key for [fkStateID] instead of
the lookup abbreviation.
Report Example: (33 is pk for NY)
"New York 33 10022" Instead of "New York NY 10022"
If I simply add fkStateID to the report it works fine sinc it is a combo
box. So I amended by text box into three seperate pieces as follows.
[city][fkStateID][postalcode]
This worked , but created another problem of spacing. So if the city name
is short it creates a large space between the city name and the state.
Anyway to fix this spacing problem and show the state abbreviation instead
of the primary key for the state abbreviation?
I had a report with the following text box that combined three fields.
=[city] & " " & [state] & " " & [postalcode]
I recently changed my table structure so [state] is now [fkStateID] which is
a lookup from tblStates.
When I changed my text box to =[city] & " " & [fkstateid] & " " &
[postalcode] the report displayed the primary key for [fkStateID] instead of
the lookup abbreviation.
Report Example: (33 is pk for NY)
"New York 33 10022" Instead of "New York NY 10022"
If I simply add fkStateID to the report it works fine sinc it is a combo
box. So I amended by text box into three seperate pieces as follows.
[city][fkStateID][postalcode]
This worked , but created another problem of spacing. So if the city name
is short it creates a large space between the city name and the state.
Anyway to fix this spacing problem and show the state abbreviation instead
of the primary key for the state abbreviation?