EvilTwinOfAtrus
Technical User
Hi All
I'm trying to run a query which tells me how many houses are on our database in each postcode (using the COUNT record function on 'HouseID' and the "WHERE PostCode1 is between x and y"). The postcode on the database is split into PostCode1 and PostCode2 for the 1st and 2nd part of the postcode. We will just be using PostCode1 for this exercise (eg LN6, E4, NW5 etc etc).
Ok, here's the problem - I need the report to tell me how many houses are in a complete postcode area instead of the separate numbers (ie I dont want to know how many houses are in LN1, LN2, LN3 etc etc, i just want to know how many are in LN in total.) How can I do this without having to enter postcodes individually into a WHERE Postcode1 is Between x And y routine? (basically i want the output to be the list of postcodes with the count of houses in each next to them.
If this is not possible in Access, is there a way you can split out the results in Excel, as this will be the final report output?
Sorry for any confusion, you're help would be very much appreciated!
I'm trying to run a query which tells me how many houses are on our database in each postcode (using the COUNT record function on 'HouseID' and the "WHERE PostCode1 is between x and y"). The postcode on the database is split into PostCode1 and PostCode2 for the 1st and 2nd part of the postcode. We will just be using PostCode1 for this exercise (eg LN6, E4, NW5 etc etc).
Ok, here's the problem - I need the report to tell me how many houses are in a complete postcode area instead of the separate numbers (ie I dont want to know how many houses are in LN1, LN2, LN3 etc etc, i just want to know how many are in LN in total.) How can I do this without having to enter postcodes individually into a WHERE Postcode1 is Between x And y routine? (basically i want the output to be the list of postcodes with the count of houses in each next to them.
If this is not possible in Access, is there a way you can split out the results in Excel, as this will be the final report output?
Sorry for any confusion, you're help would be very much appreciated!