I'm trying to get shipping costs for different weights and
zip codes. I query one table to get a zone from the user provided
zip code. That works. I then want to use that zone to retreive the
shipping cost for a specific weight from another table. I set the
zone as a variable and use it as follows: SELECT #Zone# FROM Ground
WHERE Wt=#weight# . If I use the actual zone name instead of the
variable, everything works right. When I use the variable, however,
and try to output the reslut with the #Zone# variable, I get the
original name of the zone field name, not the rate that is listed
under that field name
Is it proper to use a variable the way I have? If so, how do
you access the result? If not, is there another way to get a field
name for a query from another query? Thanks.