<?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 Error in Select from Access in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Select-from-Access/m-p/491827#M1124971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the following error in trying to load data from a view in Access:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 4294964217, ErrorMsg: [Microsoft][ODBC Microsoft Access Driver] Type mismatch in expression.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TAA5Final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the error may be because the view accesses another view which accesses a third which accesses a table, but don't know if this is the case because of the "Type Mismatch" nature of the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. It may also help to know that I sometines get asked for to enter a value for Date when I open the TAA5Final view in Access, but it doesn't always happen, so perhaps it is this that is causing the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. The reason for the above is my very limited knowledge of joins etc. There is probably a much better way of doing things for those that have the skills. I essentially have sporadic views that I need to translate to daily views i.e. your view remains unchanged from the date you first have it, until you change it. It would be easy if I just added an end date to you last view when you have another view, but this hasn't been done and I wanted to do it with script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the tables / views:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAAViews: This is the table of people's views using the foreign keys to other tables with their names, the names of the markets and the reference to scores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DailyReturns: This table contains the indices representing the markets for which people will have views, for every single day of the year (including public holidays and weekends).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAA5: Just a flat table of People's views on the market at various points throughout the year i.e. a person (of which there are many) will have a view on about 13 markets (or segments) at a point in time (about one a month)&lt;/P&gt;&lt;P&gt;SELECT ViewOwner.FullName AS ViewOwner, Indices.IndexCode, ScoreConversion.TAA5 AS Weight, TAAViews.ViewDate AS ReturnDate&lt;/P&gt;&lt;P&gt;FROM ViewOwner INNER JOIN (ScoreConversion INNER JOIN (Indices INNER JOIN TAAViews ON Indices.ID = TAAViews.IndexID) ON ScoreConversion.ID = TAAViews.ScoreID) ON ViewOwner.ID = TAAViews.AppraiserID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query2:&lt;/P&gt;&lt;P&gt;SELECT DailyReturns.Date, TAA5.ReturnDate AS StartDate, DailyReturns.IndexCode, TAA5.ViewOwner&lt;/P&gt;&lt;P&gt;FROM DailyReturns INNER JOIN TAA5 ON DailyReturns.IndexCode = TAA5.IndexCode&lt;/P&gt;&lt;P&gt;WHERE DailyReturns.Date &amp;gt;= TAA5.ReturnDate&lt;/P&gt;&lt;P&gt;GROUP BY DailyReturns.Date, TAA5.ReturnDate, DailyReturns.IndexCode, TAA5.ViewOwner;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query3:&lt;/P&gt;&lt;P&gt;SELECT Query2.ViewOwner, Query2.IndexCode, Query2.Date, max(Query2.StartDate) AS StartDate&lt;/P&gt;&lt;P&gt;FROM Query2&lt;/P&gt;&lt;P&gt;GROUP BY Query2.ViewOwner, Query2.IndexCode, Query2.Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAA5Final:&lt;/P&gt;&lt;P&gt;SELECT Query3.ViewOwner AS Owner, Query3.IndexCode AS IndexCode, Query3.Date AS ReturnDate, TAA5.Weight AS Weight&lt;/P&gt;&lt;P&gt;FROM Query3 INNER JOIN TAA5 ON (Query3.ViewOwner = TAA5.ViewOwner) AND (Query3.IndexCode = TAA5.IndexCode) AND (TAA5.ReturnDate = Query3.StartDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 06:15:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-10T06:15:43Z</dc:date>
    <item>
      <title>Error in Select from Access</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Select-from-Access/m-p/491827#M1124971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the following error in trying to load data from a view in Access:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 4294964217, ErrorMsg: [Microsoft][ODBC Microsoft Access Driver] Type mismatch in expression.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TAA5Final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the error may be because the view accesses another view which accesses a third which accesses a table, but don't know if this is the case because of the "Type Mismatch" nature of the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. It may also help to know that I sometines get asked for to enter a value for Date when I open the TAA5Final view in Access, but it doesn't always happen, so perhaps it is this that is causing the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. The reason for the above is my very limited knowledge of joins etc. There is probably a much better way of doing things for those that have the skills. I essentially have sporadic views that I need to translate to daily views i.e. your view remains unchanged from the date you first have it, until you change it. It would be easy if I just added an end date to you last view when you have another view, but this hasn't been done and I wanted to do it with script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the tables / views:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAAViews: This is the table of people's views using the foreign keys to other tables with their names, the names of the markets and the reference to scores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DailyReturns: This table contains the indices representing the markets for which people will have views, for every single day of the year (including public holidays and weekends).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAA5: Just a flat table of People's views on the market at various points throughout the year i.e. a person (of which there are many) will have a view on about 13 markets (or segments) at a point in time (about one a month)&lt;/P&gt;&lt;P&gt;SELECT ViewOwner.FullName AS ViewOwner, Indices.IndexCode, ScoreConversion.TAA5 AS Weight, TAAViews.ViewDate AS ReturnDate&lt;/P&gt;&lt;P&gt;FROM ViewOwner INNER JOIN (ScoreConversion INNER JOIN (Indices INNER JOIN TAAViews ON Indices.ID = TAAViews.IndexID) ON ScoreConversion.ID = TAAViews.ScoreID) ON ViewOwner.ID = TAAViews.AppraiserID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query2:&lt;/P&gt;&lt;P&gt;SELECT DailyReturns.Date, TAA5.ReturnDate AS StartDate, DailyReturns.IndexCode, TAA5.ViewOwner&lt;/P&gt;&lt;P&gt;FROM DailyReturns INNER JOIN TAA5 ON DailyReturns.IndexCode = TAA5.IndexCode&lt;/P&gt;&lt;P&gt;WHERE DailyReturns.Date &amp;gt;= TAA5.ReturnDate&lt;/P&gt;&lt;P&gt;GROUP BY DailyReturns.Date, TAA5.ReturnDate, DailyReturns.IndexCode, TAA5.ViewOwner;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query3:&lt;/P&gt;&lt;P&gt;SELECT Query2.ViewOwner, Query2.IndexCode, Query2.Date, max(Query2.StartDate) AS StartDate&lt;/P&gt;&lt;P&gt;FROM Query2&lt;/P&gt;&lt;P&gt;GROUP BY Query2.ViewOwner, Query2.IndexCode, Query2.Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAA5Final:&lt;/P&gt;&lt;P&gt;SELECT Query3.ViewOwner AS Owner, Query3.IndexCode AS IndexCode, Query3.Date AS ReturnDate, TAA5.Weight AS Weight&lt;/P&gt;&lt;P&gt;FROM Query3 INNER JOIN TAA5 ON (Query3.ViewOwner = TAA5.ViewOwner) AND (Query3.IndexCode = TAA5.IndexCode) AND (TAA5.ReturnDate = Query3.StartDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 06:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Select-from-Access/m-p/491827#M1124971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-10T06:15:43Z</dc:date>
    </item>
  </channel>
</rss>

