Results 1 to 5 of 5
  1. #1
    christian09 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    2

    mapping from excel to access

    I am a newbie to access. I have many excel files where I want to map to access. For instance in excel: the field under the text "name" is what I want to grab as name, and the field under the text "jobNumber" is what I want to import as jobNumber into access. The text I want to import is not always in the same cell each time, but is always under the title ie. "name."



    Should I first alter the excel file with a macro, in order to make it more "mapable", or is there a way to do this within access?

    Thank you very much.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    You can have VBA code in Access that will modify an Excel worksheet. Without knowing specifics can't really advise. Coding for interaction between apps can be complicated.

    How are you accomplishing 'mapping'? Can't you just link to the sheets?
    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
    christian09 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    2

    re:

    Hi,
    I guess I say mapping b/c I used to use ACT!. I have like 500,000 different sheets(each is a separate file), can I still link all 500k w/o doing each separately? My other issue is I am trying to Link? certain fields in each excel sheet to access. This would be no problem normally, but I will use this example sheets(I just put both sheets in a file) I have attached. My goal is to have access find the correct name, id, title and link them to name,id,title in access. In sheet 1, name is in a different field from steve. The id I want comes in the field under "id". In sheet #2 the name is in B2 instead of A2. The id is to the right, instead of under the id label and is in row 7 instead of higher up.
    I hope this helps,
    Steve

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    500,000!! For Real!! I haven't done a lot of VBA for Excel but this does look like could get very complicated, especially since I don't really understand what you want to accomplish. Are you trying to get data into Access tables? Or do you have to maintain these spreadsheets? All I can suggest is you attempt code and when have issues post specific questions.
    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
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    I would suggest trying a straight link to one of the excel spreadsheets and see what you get - just use the External data tab and link to an Excel Spreadsheet. That will at least tell you if you need to do any kind of manipulation to you Excel sheets first...

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

Similar Threads

  1. Error message when mapping network drive
    By dwcolt in forum Programming
    Replies: 5
    Last Post: 05-11-2011, 08:56 AM
  2. Visual Mapping Using Zip Codes?
    By kalisti in forum Reports
    Replies: 1
    Last Post: 01-03-2011, 07:26 PM
  3. Importing and mapping data to various tables
    By rasticle in forum Import/Export Data
    Replies: 1
    Last Post: 05-17-2010, 04:22 PM
  4. mapping problem?
    By stevenyp in forum Programming
    Replies: 2
    Last Post: 10-08-2009, 10:13 AM
  5. form - subform field mapping
    By nqirar in forum Programming
    Replies: 2
    Last Post: 03-02-2009, 01:49 PM

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