+ Reply to Thread
Results 1 to 8 of 8

Import Text File to Access Table using Excel VBA

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Import Text File to Access Table using Excel VBA

    Hi

    I have an access database, where I import some text files (by saving excel worksheet as txt) to Predefined tables in Access. Some queries are then run, which use these tables. I need to automate this process.

    So what I basically need to do is, use an excel macro, which makes the Access Db to import the text file to a table and then run the access queries.

    I am completely new to Access database and have no idea where to begin. I am not aware if exporting excel worksheets instead of text files will work as I have no backend knowledge of the database. I have basic knowledge of Excel VBA.

    Any help will be greatly appreciated!!

    TIA

  2. #2
    Registered User
    Join Date
    04-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Import Text File to Access Table using Excel VBA

    bumping!! Please help!

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Import Text File to Access Table using Excel VBA

    Still no reply!! Somebody please help!!

  4. #4
    Registered User
    Join Date
    08-23-2010
    Location
    india,Chennai
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Import Text File to Access Table using Excel VBA

    instead of exporting excel worksheet as text files you can directly upload data from excel to access

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Import Text File to Access Table using Excel VBA

    Hey mohanvijay

    Thanks for your reply!

    The access database I am using is controlled by another team and accordingly the queries/table use import text file and cannot be edited. Hence, I must export a text file only.

    In any case, can you please let me know how to export excel sheet to access?

    I found this code online: if you can explain the same, would be really grateful!

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-23-2010
    Location
    india,Chennai
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Import Text File to Access Table using Excel VBA

    are you able to open that access database?

    if yes we can create the simple VBA to add data from excel to access

  7. #7
    Registered User
    Join Date
    04-22-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Import Text File to Access Table using Excel VBA

    Yes I can open the Access database. I have read only access to it.

    Currently, I open it, for the already created tables, import data as text and then run the queries.

  8. #8
    Registered User
    Join Date
    08-23-2010
    Location
    india,Chennai
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Import Text File to Access Table using Excel VBA

    I think if you have only a read only access you can not do ot via vba

    for import excel sheet in access see "External Data" tab

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1