+ Reply to Thread
Results 1 to 13 of 13

display address corresponding to postcode and house no

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    display address corresponding to postcode and house no

    Is it possible to buid a forem where the user just type house no and postcode and the corresponding address should automatically display on the address textboxes.

    Can anyone please help me to build this up?

    Thanks
    Aman

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: display address corresponding to postcode and house no

    Good morning aman1234
    Quote Originally Posted by aman1234 View Post
    Is it possible to buid a forem where the user just type house no and postcode and the corresponding address should automatically display on the address textboxes.
    Yes, tt is certainly possible to do this.
    Is it possible using Excel? No is the short answer. With somewhere in the region of 2.5 million active postcodes in the UK you wouldn't have nearly enough rows using Excel 2003 and still not enough using Excel 2007. I also don't think that Excel has powerfull enough interrogation facilities to enable this.

    There are several companies offering software or online tools to do this. Try Googling for some. There doesn't seem to be much in the way of free - obviously a lot of work goes into this sort of thing.

    http://www.postcoder.com/handy_tools/postcode_lookup

    HTH

    DominicB
    Last edited by dominicb; 05-12-2010 at 06:46 AM.
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: display address corresponding to postcode and house no

    Thanks dominic

    In my project, Excel is the frontend and access is the backend. Is it possible if I store them in access table and display the corresponding address on the textboxes in the userform.

    Thanks
    Aman

  4. #4
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: display address corresponding to postcode and house no

    Can anyone please tell me Is it possible if Access is the backend and excel is the frontend?

    Thanks

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,966

    Re: display address corresponding to postcode and house no

    Yes, it is possible assuming you have all the postcodes in the database and that you have the house numbers as a separate field.
    Everyone who confuses correlation and causation ends up dead.

  6. #6
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: display address corresponding to postcode and house no

    You can find a database (SQL and CVS files) for UK postnumbers here

    I've also attached a sample workbook that chooses correct city based on postal number.
    Attached Files Attached Files
    Last edited by wamp; 05-12-2010 at 09:21 AM.

  7. #7
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: display address corresponding to postcode and house no

    Thanks wamp

    Can you please send me the vba code to display the whole address instead of only city in the textboxes depending upon the postcode and house number please. The database needs to be access?

    Thanks
    Aman

  8. #8
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: display address corresponding to postcode and house no

    Quote Originally Posted by romperstomper View Post
    Yes, it is possible assuming you have all the postcodes in the database and that you have the house numbers as a separate field.
    Thanks romper for your reply. Can you please send me the complete code to acheive this?
    I hope you will help me out.

    Thanks
    Aman

  9. #9
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,966

    Re: display address corresponding to postcode and house no

    Since I don't know anything about your database or how you plan to input these values, no I can't give you complete code.

  10. #10
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: display address corresponding to postcode and house no

    Ok. uploaded the changed workbook.

    Can you please send me the vba code to display the whole address instead of only city in the textboxes depending upon the postcode and house number please. The database needs to be access?
    No, I can't.
    Like dominic said, it's not possible to display 2,5++million addresses in excel
    Thus, if you want to extract a complete address with only a postcode and a housenumber to go on (enter), you'd still get multiple hits, as many housenumbers are the same within a single postal-region.
    That would be IF you had a database containing all this information.

    and even then, II assume there are also many addresses througout the UK with exactly the same names in them, thus ever-changing streetnames due to new buildings etc. etc.so it would be a database that'd be "impossible" to maintain unless you have a fulltime job in the postoffice, doing just that :-p

  11. #11
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: display address corresponding to postcode and house no

    Romper, I don't have anything in the databse.My manager just asked me can you find the complete address depending upon the postcode and house number entered by the user.
    The address will then be stored in the textboxes.

    But I don't know how to do it as for this I need all the addresses,house numbers and postcodes then search from the database the record that matches with house number and postcode entered in the textboxes.

    I really have no idea thats why I need your help.

    Thanks
    Aman

  12. #12
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,966

    Re: display address corresponding to postcode and house no

    Tell him no.
    If you don't already have the data, then you will need to get it from somewhere, and it almost certainly won't be free.

  13. #13
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: display address corresponding to postcode and house no

    [removed - will leave it to Moomin]

    ;-)
    Last edited by wamp; 05-12-2010 at 09:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1