C
Ceebaby via AccessMonster.com
Hi Everyone
I have a query of addresses where I would like to filter on even door numbers.
The StreetNo field is a text field and so I have used the VAL function to get
the numbers only as a calculated field called [Even], and have then tried to
filter the query using the [Even] calculated field in another calculated
field called [Door].
So far I have
SELECT [TBL LLPG].UPRN, [TBL LLPG].SAON, [TBL LLPG].Building, [TBL LLPG].
StreetNo, [TBL LLPG].Street, "Mellenden" AS B, Val([StreetNo]) Mod 2 AS Even,
[even] AS Door
FROM [TBL LLPG]
WHERE ((([TBL LLPG].StreetNo) Between "16" And "132") AND (([TBL LLPG].Street)
Like "Ham Rye") AND (([even])=0));
But when I try to run the query I am get a parameter box prompting for the
caluclated field Even. I have tried several variations but cannot get the
table to list only the even door numbers.
Any help would be most appreciated.
Cheers
Ceebaby, London
I have a query of addresses where I would like to filter on even door numbers.
The StreetNo field is a text field and so I have used the VAL function to get
the numbers only as a calculated field called [Even], and have then tried to
filter the query using the [Even] calculated field in another calculated
field called [Door].
So far I have
SELECT [TBL LLPG].UPRN, [TBL LLPG].SAON, [TBL LLPG].Building, [TBL LLPG].
StreetNo, [TBL LLPG].Street, "Mellenden" AS B, Val([StreetNo]) Mod 2 AS Even,
[even] AS Door
FROM [TBL LLPG]
WHERE ((([TBL LLPG].StreetNo) Between "16" And "132") AND (([TBL LLPG].Street)
Like "Ham Rye") AND (([even])=0));
But when I try to run the query I am get a parameter box prompting for the
caluclated field Even. I have tried several variations but cannot get the
table to list only the even door numbers.
Any help would be most appreciated.
Cheers
Ceebaby, London