Results 1 to 6 of 6
  1. #1
    David92595 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    22

    Importing And Comparing A Table From Excel

    Hello,

    Basics: I'm running a SQL server 2008 R2 back end with an Access 2007 Front end.

    I need to find a way to run a SQL report based off Primary Key (numbers) from an excel spread sheet. There are a few hundred so I need to find a way of Importing the spread sheet and comparing it against an existing table or query.

    As always, any help is greatly appreciated,



    David92595

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Is the Excel sheet data structure simple enough that Access could just link to it? Linked sheets can be used much like an Access table, except maybe for editing the sheet data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    David92595 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    22
    I think so I have no experence linking sheets, but the excel spread sheet is simple in form, and all I really need is the first column...
    So I think it's a yes, what else can you tell me about linking to the excel file and how would I compare that against a table or query?

    David92595

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    What do you want to compare? Do you want to know if the data in the sheet exists in the SQL table? Build queries that join the tables. Try the Find Unmatched query wizard.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    David92595 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    22
    I want to pull in the first column of the excel document and run a report using the numbers in that first colum (they are the PK numbers in our database). so I need to compare it against our database and return a query to pull the other needed information.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Still don't know what you mean by 'compare'. Link the sheet and build queries. When you encounter specific issue with that effort, post question.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Importing excel file to append a table
    By vickan240sx in forum Access
    Replies: 1
    Last Post: 06-27-2012, 02:46 PM
  2. Replies: 3
    Last Post: 04-09-2012, 02:29 PM
  3. Importing excel data into table automatically
    By jwalker55 in forum Import/Export Data
    Replies: 2
    Last Post: 01-10-2012, 07:56 AM
  4. Importing Excel data to an existing table
    By tonyrhills in forum Import/Export Data
    Replies: 3
    Last Post: 12-23-2011, 09:19 AM
  5. Beginner-Importing excel table question
    By simmonsmtb in forum Import/Export Data
    Replies: 3
    Last Post: 03-07-2011, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums