Hi again,
I'm trying to create a calculated field in a query that uses a sub query in the expression.
This is what I have:
ProvinceOrState Table is actually a field in another table.
The sub query works on it's own and produces the value of the ProvinceOrState Table as it should.
When I insert the sub query after FROM in the primary query, I get promted for input for the ProvinceAbbr field (I'm prompted just as any parameter query would promt for missing information).
This is not what I expected! This expression should be returning the value of ProvinceAbbr, not asking for it!
What am I doing wrong?
Thanks!
Oliver
I'm trying to create a calculated field in a query that uses a sub query in the expression.
This is what I have:
Code:
tmpProvinceAbbr: (SELECT ProvinceAbbr FROM (SELECT ProvinceOrStateTable FROM tblCountry WHERE CountryID = 1) WHERE ProvinceID = 8;)
The sub query works on it's own and produces the value of the ProvinceOrState Table as it should.
When I insert the sub query after FROM in the primary query, I get promted for input for the ProvinceAbbr field (I'm prompted just as any parameter query would promt for missing information).
This is not what I expected! This expression should be returning the value of ProvinceAbbr, not asking for it!
What am I doing wrong?
Thanks!
Oliver
Comment