Results 1 to 2 of 2
  1. #1
    rrrt is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    1

    Custom Import from Excel to Access

    Hi,

    I am new to using Access 2007 and i would appreciate help regarding importing data from excel to Access.

    My Excel spreadsheet's format is as follows:



    Name Group NO SSN
    Name 1 1 SSN Number
    Name 2 1 SSN Number
    Name 3 1 SSN Number
    Name 4 2 SSN Number
    Name 5 2 SSN Number
    Name 6 3 SSN Number
    Name 7 4 SSN Number
    and so on...


    My Access table format is as follows (how i would like my information to appear on Access):

    Group NO (Primary Key Autonumber) 1-Name 1-SSN 2-Name 2-SSN 3-Name 3-SSN
    1 Name1 (SSN Number) Name 2 (SSN Number) Name 3 (SSN Number)
    2 Name4 (SSN Number) Name 5 (SSN Number)
    3 Name6 (SSN Number)
    4 Name7 (SSN Number)

    How can i import the information So that the group number from the excel sheet corresponds to the record number on the Access Table. Also, listing out the Name and their SSN to the corresponding columns for each group number.
    Any help would be greatly appreciated and thank you for lending me your knowledge.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    The arrangement you want is non-normalized structure. Why is this necessary?

    You could import the data as is from the Excel then use code in Access to rearrange the data.

    Regardless, this will require complex VBA code to accomplish. Review: http://forums.aspfree.com/microsoft-...ry-322123.html
    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. Import Excel to Access
    By kilo21 in forum Import/Export Data
    Replies: 6
    Last Post: 05-21-2012, 11:18 PM
  2. Import from Excel to Access
    By Phred in forum Programming
    Replies: 13
    Last Post: 05-16-2012, 12:25 AM
  3. Import excel to access
    By beha in forum Import/Export Data
    Replies: 8
    Last Post: 10-25-2011, 11:39 AM
  4. import excel file to access 2003 yes, access 2007 no
    By stapik in forum Import/Export Data
    Replies: 9
    Last Post: 07-27-2011, 07:09 AM
  5. Custom Import from Excel
    By StuartSmith in forum Import/Export Data
    Replies: 4
    Last Post: 10-12-2010, 08:33 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