In the tutorial shown here: http://www.functionx.com/access/Lesson29.htm
I am at the point where the SQL code should look like this:
SELECT Properties.[Property Type],
Properties.City,
Properties.State,
Properties.[ZIP Code],
Properties.Bedrooms,
Properties.Bathrooms,
Properties.Stories,
Properties.[Year Built],
Properties.Condition,
Properties.[Market Value]
FROM Properties
WHERE (((Properties.[Property Type])="single family") OR
(((Properties.[Property Type])="townhouse")) AND
((Properties.[ZIP Code]) Between 20850 And 20950)) ;
However, it does not produce the output shown in the tutorial. The output has in fact more records with
: 13 as opposed to the previous steps 10. The modifications of the SQL were supposed to eliminate more records leaving
only the MD state with single family and townhouses. That is a total of 4 records. The output looks like this in datasheet view:
Property Type City State ZIP Code Bedrooms Bathrooms Stories Year Built Condition Market Value Single Family Silver Spring MD 20904 4 2.5 3 1995 Good Shape $495,880.00 Single Family Alexandria VA 22231 4 3.5 2 2000 Excellent $620,724.00 Single Family Laurel MD 20707
2
Good Shape $422,625.00 Single Family Alexandria
22024 3
1965
$345,660.00 Single Family Martinsburg WV 25401 4 3.5 3 2005 Good Shape $325,000.00 Single Family Silver Spring MD 20906 3 3 3 1996 Excellent $625,450.00 Single Family Chevy Chase
20956
3 2001
$525,450.00 Single Family Washington DC 20008 5 3.5 3 2000 Good Shape $555,885.00 Single Family Falls Church VA
5 2.5 2 1995 Excellent $485,995.00 Single Family Washington DC 20004 4 3.5 1 2004 Good Shape $735,475.00 Single Family Gaithersburg MD 20872 4 2.5 1 1965 Unknown $615,775.00 Townhouse Rockville MD 20854 3 2.5 2 1988 Good Shape $525,995.00 Single Family York PA 17405 4 3.5 3 2002 Excellent $326,885.00
When there should only be 4 records, those in MD and with a zip code between 20850 and 20920.
I reordered the code the way the tutorial said to do. My output is simply incorrect. So what is wrong with my
code or is it the tutorial?
Thanks in advance.
Respectfully,
Lou Reed