+ Reply to Thread
Results 1 to 4 of 4

VBA, Excel and SQL

  1. #1
    Registered User
    Join Date
    11-26-2007
    Posts
    3

    VBA, Excel and SQL

    A) I have a list of postcodes (like zip codes) in Excel

    B) I have demographic data in SQL server consisting of almost 2million rows.

    What I need - To match the postcodes in Excel with the information in the SQL table.

    How can it be done in VBA?

    thanks
    Last edited by VBA Noob; 11-20-2008 at 09:10 AM.

  2. #2
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    Create a table using SQL, populate it with you zip codes, then do a JOINed lookup of the SQL data.

  3. #3
    Registered User
    Join Date
    11-26-2007
    Posts
    3
    Maybe I message wasn't clear enough. I want to retrieve the matched records in Excel, not in SQL.

  4. #4
    Forum Contributor
    Join Date
    05-21-2004
    Location
    UK
    Posts
    136
    I understood that, but you need the SQL to get data from an SQL table.

+ 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