Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Multiple Excel import to Access

Discussion in 'Information Technology' started by Ernesto, Nov 8, 2005.

  1. Ernesto

    Ernesto
    Expand Collapse
    Guest

    Hello all,
    I'm a newbee on this site. And I have limited code writing experience.
    But I've been assigned a task that I think you all could help me out
    with.

    I need to achieve some data. The data will be saved in Excel files. I
    need to import that data into Access. Here's what i was thinking:
    1. Save in one central location.
    2. Have access import the files from there automatically.

    is that possible? Here is the descbrition of the files. Excel file will
    have contain an "Input" tab where user input data. Then I have a Macro
    which creates a flat file which I would like to upload to Access. The
    thing is that there may be a varity of files. (LOTS!!) With different
    names. Is there any way to automate that on a monthly basis?

    thanks!
     
  2. Loading...


  3. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    If you want to automate the process, you will need to write some code. While
    we may not do that for you, we can help guide you through the process.

    What you need to do is pick a directory and put your files in it. Loop
    through that directory, checking for the existance of Excel files. When you
    find them, begin using TransferSpreadsheet to copy the data to the relevant
    table in your database. Once your code is satisfied that the data is there,
    you can delete the spreadsheet and move to the next.

    You can also use either TransferSpreadsheet or OutputTo to move the data
    back into Excel for purposes of distribution.
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access


    "Ernesto" wrote:

    > Hello all,
    > I'm a newbee on this site. And I have limited code writing experience.
    > But I've been assigned a task that I think you all could help me out
    > with.
    >
    > I need to achieve some data. The data will be saved in Excel files. I
    > need to import that data into Access. Here's what i was thinking:
    > 1. Save in one central location.
    > 2. Have access import the files from there automatically.
    >
    > is that possible? Here is the descbrition of the files. Excel file will
    > have contain an "Input" tab where user input data. Then I have a Macro
    > which creates a flat file which I would like to upload to Access. The
    > thing is that there may be a varity of files. (LOTS!!) With different
    > names. Is there any way to automate that on a monthly basis?
    >
    > thanks!
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page