Results 1 to 7 of 7
  1. #1
    Madraykin is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    17

    Accessing Data Import wizard via a macro?

    Hiya,



    I've built a mini database to log requests from a number of people. A lot of the requests coming in will be piecemeal, but occasionally there will be batch requests with multiple records and I don't want the guys to feel they have to go through and fill out the form for each one of those new records.

    I have a front end user menu with 'log a new request' etc as options, and I'd like to add a button for 'log multiple requests' that will automatically open the import data wizard so that the user can select their spreadsheet (they'll have been issued with templates) and append to the correct table.

    If anyone knows the code for opening the wizard, or can think of a better way to do the above then I'd be really grateful.

    I'm ok at building databases, but am a VBA novice and only manage to work my way around doing what I want to do by investigating scenarios online atm, so may need a little hand-holding!

    Thanks all!

    Mads

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Do you want macro or VBA?

    Macro
    Action: RunMenuCommand
    Command: ImportAttachExcel

    VBA
    DoCmd.RunCommand acCmdImportAttachExcel
    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
    Madraykin is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    17
    Ooooh - well, the macro is the format that I understand more! Thanks so much, I'll give these a go and see if they pan out!

  4. #4
    Madraykin is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    17
    The only issue I face with 'batch uploading' is one of the fields that normally auto-populate - ie. usually when a person's name is selected from a drop-down their contact details auto-populate, and when an address is selected the postcode is auto-populated.

    I'm guessing this won't be possible via importing?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The contact and postcode details autopopulate from where? This sounds like duplication of data.

    No, the import wizard will not do that.
    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.

  6. #6
    Madraykin is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    17
    It is duplication of data - I've been having arguments with those I'm creating the database for over this. Tbh I think I'm going to change it anyway. It will save my struggling to find work-arounds that fit what they want!!

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Workaround would be to run UPDATE actions on the new records after imported.
    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. Access 2010 Import Spreadsheet Wizard
    By frdebelo in forum Access
    Replies: 1
    Last Post: 06-20-2011, 12:11 PM
  2. Using Import wizard to get Excel data
    By Jack Sheet in forum Import/Export Data
    Replies: 5
    Last Post: 07-16-2010, 09:44 AM
  3. Macro for Email Wizard Using the Access Runtime?
    By MFriend in forum Programming
    Replies: 1
    Last Post: 07-12-2010, 04:52 AM
  4. Import Wizard Not Working
    By cjh2001 in forum Import/Export Data
    Replies: 1
    Last Post: 01-24-2008, 06:33 PM
  5. Problems with Import Spreadsheet Wizard
    By Conan Kelly in forum Import/Export Data
    Replies: 1
    Last Post: 11-29-2005, 09:39 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