Results 1 to 2 of 2
  1. #1
    upfish is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2012
    Posts
    1

    How to import excel spreadsheet into an Access subform

    I have a sample database like this(see image 1). As you can see, I have a subform built inside the Service Offering List table. Now if I want to import an excel spreadsheet(see image 2). How can import it into the subform under Access accordingly? Thanks!



    Click image for larger version. 

Name:	Untitled.jpg 
Views:	15 
Size:	81.7 KB 
ID:	9360

    Click image for larger version. 

Name:	Untitled1.gif 
Views:	15 
Size:	31.5 KB 
ID:	9361

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    That's not a form/subform that's a table view. Importing the data would require you to be able to identify the previous two levels of your sorting. It looks like you have those two items in your spreadsheet but you would have to confirm that, but it looks like your TEAM NAME is in the spreadsheet instead of the TEAMID which is what you'd need to append the data to a table. if that TEAM NAME is identical to the team name in your TEAM_LIST table you should be able to match them up, if there is any possibility that the two will be different it will be much harder to do an automatic import. What it really comes down to is this:

    Are you importing 1 spreadsheet, or a bunch of spreadsheets?
    Is the data on the spreadsheets cumulative (does it contain all the data every time you get it) or additive (only contains new data)

    The very simplest thing it could be is that you are receiving a single spreadsheet with only additive data, if that's the case you can establish a link to the spreadsheet, create a query that looks up the team ID from the team name and append all that data to your yearly goals table.

    The import will likely require you to do some sort of coding (either via module or a button click on a form), it is not something that you can set up from the table view.

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

Similar Threads

  1. Open Excel spreadsheet in Access
    By carlyd in forum Forms
    Replies: 1
    Last Post: 02-17-2012, 01:09 PM
  2. Access 2010 Import Spreadsheet Wizard
    By frdebelo in forum Access
    Replies: 1
    Last Post: 06-20-2011, 12:11 PM
  3. import excel spreadsheet though outlook
    By bopsgtir in forum Import/Export Data
    Replies: 0
    Last Post: 03-18-2011, 09:07 AM
  4. Email Excel Spreadsheet from Access
    By Nancy in forum Access
    Replies: 2
    Last Post: 11-09-2010, 02:37 PM
  5. import an excell spreadsheet in an access database
    By lmichaud in forum Import/Export Data
    Replies: 0
    Last Post: 11-03-2006, 08:29 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