<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Load script - loop through all tables in Access database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189013#M713989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have an access database that can contain x amount of identically structured tables.&lt;/P&gt;&lt;P&gt;I want to loop through all tables in this database and load them all into Qlikview in a single table.&lt;/P&gt;&lt;P&gt;I know Qlikview will automatically concatenate tables with the same fields so the real issue is how to make qlikview loop through them all regardless of the number.&lt;/P&gt;&lt;P&gt;Please can anyone advise?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 07:49:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-30T07:49:00Z</dc:date>
    <item>
      <title>Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189013#M713989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have an access database that can contain x amount of identically structured tables.&lt;/P&gt;&lt;P&gt;I want to loop through all tables in this database and load them all into Qlikview in a single table.&lt;/P&gt;&lt;P&gt;I know Qlikview will automatically concatenate tables with the same fields so the real issue is how to make qlikview loop through them all regardless of the number.&lt;/P&gt;&lt;P&gt;Please can anyone advise?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 07:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189013#M713989</guid>
      <dc:creator />
      <dc:date>2011-03-30T07:49:00Z</dc:date>
    </item>
    <item>
      <title>Re. :Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189014#M713990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dom,&lt;/P&gt;&lt;P&gt;you don't have any possibility to create a macro or VBA program directly in Access to make the concatenation automatically in a single table before loading the data with Qlikview?&lt;/P&gt;&lt;P&gt;Perhaps is there any possibility to execute this macro from QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 07:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189014#M713990</guid>
      <dc:creator />
      <dc:date>2011-03-30T07:54:09Z</dc:date>
    </item>
    <item>
      <title>Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189015#M713991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dominic,&lt;/P&gt;&lt;P&gt;You need to first generate a list of all the tables; this can be done manually via a simple .xls list for example or automatically via a query of the Access DB's 'sysObjects' table.&lt;/P&gt;&lt;P&gt;Once you have the list you can then set a loop within you're load script (For i to n...) to load through the tables.&lt;/P&gt;&lt;P&gt;Take a look at the script of my SQL Extractor qvw as that should point you in the right direction - the password for the Hidden Script is '1234'.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/media/p/154056.aspx"&gt;http://community.qlik.com/media/p/154056.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 09:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189015#M713991</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-03-30T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189016#M713992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to adopt your script to help me get all the tables from my MSAccess db.&lt;/P&gt;&lt;P&gt;What I did is to change sys.objects to MSysObjects (else I get error that there is no sys.mdb file).&lt;/P&gt;&lt;P&gt;I use this string for connecting the db:&lt;/P&gt;&lt;P&gt;[Reg_2000-5;DBQ=D:\Path_to_db\Register03.mdb]&lt;/P&gt;&lt;P&gt;And I got the error: no read permitions to MSysObjectstable.&lt;/P&gt;&lt;P&gt;My dbase is MSAccess 2000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189016#M713992</guid>
      <dc:creator />
      <dc:date>2011-04-19T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189017#M713993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you should be able to read all tables from the ODBC connector.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;sqltables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 18:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189017#M713993</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-04-19T18:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189018#M713994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew Good afternoon, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have this example to post again? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 20:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189018#M713994</guid>
      <dc:creator />
      <dc:date>2014-02-25T20:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load script - loop through all tables in Access database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189019#M713995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13933595515227466" jivemacro_uid="_13933595515227466" modifiedtitle="true"&gt;
&lt;P&gt;ODBC CONNECT TO [MS Access Database;DBQ=PATH\yourbase.accdb];&lt;/P&gt;
&lt;P&gt;Tbls:&lt;/P&gt;
&lt;P&gt;SQLTABLES; // Retrieve table names&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;List:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE_NAME&lt;/P&gt;
&lt;P&gt;resident&amp;nbsp; Tbls&lt;/P&gt;
&lt;P&gt;where TABLE_NAME LIKE 'Base*';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i = 0 to NoOfRows('List') - 1&lt;/P&gt;
&lt;P&gt;LET tablename=Peek('TABLE_NAME',$(i),'List');&lt;/P&gt;
&lt;P&gt;//your load script here&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 20:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-loop-through-all-tables-in-Access-database/m-p/189019#M713995</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-25T20:19:05Z</dc:date>
    </item>
  </channel>
</rss>

