Results 1 to 5 of 5
  1. #1
    maxiz1 is offline Novice
    Windows XP Access 2013 32bit
    Join Date
    Jun 2016
    Posts
    2

    Import excel data to query

    Hello,
    I have a table (Table1) which contain approximately 30 columns. I wanted User2 to input the data into say column 10 and 11, which requires him to perform some calculation in Ms excel.

    To avoid giving User2 too much data, I intend to achieve this by creating a query to only include the ID, column 10 and column 11 from Table1, and then export to excel. Once the user has updated column 10 and 11 using excel, I will upload it to the main Table.

    I found that I could not upload excel to Query, as it only allow it for Table. However, as mentioned I don't want to give the User2 the full Table1.




    Please help.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If you link to the Excel file, you can run an update query to update the table from it. The user wouldn't see the table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,784
    Yup, linking the spreadsheet would be one way and I've done that. Can't recall if there were any issues around the Excel file being open at the time Access was trying to work on it.
    Wondering why the data isn't presented in a form and the necessary entries made there. Forms are most useful for controlling data access and editing.
    Also seems that calculated values will be stored in a table. Not sure about that...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    maxiz1 is offline Novice
    Windows XP Access 2013 32bit
    Join Date
    Jun 2016
    Posts
    2
    Thanks for responding. However I cannot use update query or form for User2 to update column10 and 11. He needs to use excel. This is because it involve different calculation for different set of record. To give a glimpse, I'm building a database on equipment reliability. For each equipment, the way to calculate it differs from another significantly due to the difference in equipment and arrangement. It is too complex to automate the equation by using IF THEN thus it needs User2 to do it in Excel.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Excel is fine. My suggestion was to update Access from the Excel file, using an update query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 06-25-2015, 03:56 PM
  2. Replies: 3
    Last Post: 01-05-2015, 02:21 PM
  3. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 PM
  4. Query used to import data from access > excel
    By Perceptus in forum Queries
    Replies: 1
    Last Post: 07-25-2013, 10:45 AM
  5. Import data from Excel
    By mari_hitz in forum Import/Export Data
    Replies: 1
    Last Post: 06-13-2011, 07:34 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