Consulting

Results 1 to 3 of 3

Thread: compare 1 out of 1,600,000

  1. #1
    VBAX Regular Felix Atagong's Avatar
    Joined
    Jun 2004
    Location
    Louvain, Belgium
    Posts
    29
    Location

    compare 1 out of 1,600,000

    I get daily Excel (2000) files containing +/- 100 addresses in the uk. I need to compare the postal code (and city) on this file with the official British Post database that is 80 MB big (in csv) and contains about 1,600,000 entries. (This to have the official spelling of the city name, BIRMINGHAM not B'HAM etc... and to see if the right postal code has been given).

    I suppose it will be faster to lookup the postal codes when they are in a database such as msaccess, not csv. Are there 'faster' databases (SQLite?). I'm basically looking for the fastest way to do a lookup...
    Felix Atagong
    Unfinished Projects

  2. #2
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    If you loaded it in access, you could have your table for the day with your +/- 100 addresses then your correct city / postal code table loaded in as well.

    Then do a query with the two tables including all records from your daily table and only those that match from the other table with the relationship between postal codes. Load all your fields from the daily table into the fields section of the query. In the criteria for city use something like <>[masterpostcodetable].[city] so it will only show you records where there are differences

  3. #3
    VBAX Expert Tinbendr's Avatar
    Joined
    Jun 2005
    Location
    North Central Mississippi (The Pines)
    Posts
    993
    Location
    Do you HAVE to use THAT database file?

    Could you perform a web query instead?

Posting Permissions

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