Results 1 to 10 of 10
  1. #1
    apetriella is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2015
    Posts
    7

    Importing an excel file that must be updated daily


    Hello all,

    I have a slight problem with access. Currently I am required to create a database that requires the source table to be updated on a daily basis. Initially, I used a linked database from excel and a specific file path on my computer. This proved to be problematic due to the fact that whenever I needed to update the file, I would have to re-import it from excel with the new file.

    I also need to connect two fields in a form together (One is an identification number and the second is the facility that it identifies). Currently the only way to work with it is to manually input the identification number as well as the facility name separately, I would like to get it to the point where I just have to enter the identification number and it would automatically pull the facility name that matches it. Any help would be appreciated. Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What method are you using for getting the Excel data - are you just linking to the file or are you importing the data? Is the Excel file cumulative or is it only new data?

    Why are you saving both facility ID and facility name? Where would the facility name be pulled from?

    Not sure what you need, maybe a multi-column combobox. http://www.datapigtechnologies.com/f...combobox3.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.

  3. #3
    apetriella is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2015
    Posts
    7
    Quote Originally Posted by June7 View Post
    What method are you using for getting the Excel data - are you just linking to the file or are you importing the data? Is the Excel file cumulative or is it only new data?

    Why are you saving both facility ID and facility name? Where would the facility name be pulled from?

    Not sure what you need, maybe a multi-column combobox. http://www.datapigtechnologies.com/f...combobox3.html
    1. The file is being linked to Access from an excel spreadsheet and it is a cumulative file

    2.Facility ID and Facility Name are being saved on an Access form, facility name is being pulled from the previously mentioned excel file. I should mention that everything is being pulled from the excel file.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Okay, you have a link to Excel file. I am not sure what you want to do with it. Do you want to transfer that data to an Access table?
    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
    apetriella is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2015
    Posts
    7
    Quote Originally Posted by June7 View Post
    Okay, you have a link to Excel file. I am not sure what you want to do with it. Do you want to transfer that data to an Access table?
    If it is possible I want to be able to update the file and have it automatically update in access. For example, if I have 100 new facilities that have to be added to the excel file, I would download my excel file from its source and replace the old excel file with the new one and have access automatically recognize it, if this is not possible I'm open to an idea that would give me similar results.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    As long as the Excel download is saved with the same file name and has the same structure, Access link should work.
    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.

  7. #7
    apetriella is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2015
    Posts
    7
    I have found a simple solution to the first problem I had (of constantly updating an excel file). Now, I still have the issue of connecting two field values together. The problem I'm facing is still the same one. I need a certain facility ID number to match a facility name value when it is automatically put into a form. The current method is to put in the value (say facility number 1) and then going into the form and manually putting in the facility (say facility name Joe's hardware store). I would like it so that when I go to the facility number field and put in 1, it will automatically pull up Joe's hardware store in the facility name field.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Did you view the link about multi-column combobox?

    If user selects facility from a combobox, the facility name can be a column of that combobox. Then the name is available for viewing. Code can reference the column.

    I still don't see need to save the name as well as the number.
    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.

  9. #9
    apetriella is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2015
    Posts
    7
    Quote Originally Posted by June7 View Post
    Did you view the link about multi-column combobox?

    If user selects facility from a combobox, the facility name can be a column of that combobox. Then the name is available for viewing. Code can reference the column.

    I still don't see need to save the name as well as the number.
    Combo Boxes rule, thank you! It works.

  10. #10
    Rw9122 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2015
    Posts
    1
    Quote Originally Posted by apetriella View Post
    I have found a simple solution to the first problem I had (of constantly updating an excel file). Now, I still have the issue of connecting two field values together. The problem I'm facing is still the same one. I need a certain facility ID number to match a facility name value when it is automatically put into a form. The current method is to put in the value (say facility number 1) and then going into the form and manually putting in the facility (say facility name Joe's hardware store). I would like it so that when I go to the facility number field and put in 1, it will automatically pull up Joe's hardware store in the facility name field.

    I have the same situation. Could you tell me the solution you have for the 1st problem?

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

Similar Threads

  1. Import daily updated excel into Access 2002-2003
    By phildcs in forum Import/Export Data
    Replies: 4
    Last Post: 06-11-2013, 06:06 AM
  2. Importing Excel file to access
    By bambereczek in forum Access
    Replies: 1
    Last Post: 09-10-2012, 06:38 AM
  3. Importing .CSV file to excel
    By herbc0704 in forum Import/Export Data
    Replies: 1
    Last Post: 05-17-2012, 05:25 PM
  4. importing data from an excel file
    By slimjen in forum Access
    Replies: 3
    Last Post: 09-21-2011, 12:38 PM
  5. Importing an Excel file
    By bvtterflygirl in forum Import/Export Data
    Replies: 5
    Last Post: 02-24-2011, 11:54 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