<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kagasu</author_name>
  <author_url>https://blog.hatena.ne.jp/kagasu/</author_url>
  <blog_title>備忘録</blog_title>
  <blog_url>https://kagasu.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
  </categories>
  <description>Excelのシートに対してSQLを実行し結果を得る処理があり、 このとき日付で条件指定をして抽出する場合に以下のエラーが出力されハマった。 実行時エラー -2147217900(80040e14) [Microsoft][ODBC Excel Driver]クエリ式 '日付 BETWEEN #2015/10/1# AND #平 27/10/31#'の日付の構文エラーです。 この時のコードは以下のようになっていた。 conn.Provider = &quot;MSDASQL&quot; conn.ConnectionString = &quot;Driver={Microsoft Excel Driver (*.xls)};…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F20150924%2F1443082758&quot; title=&quot;Excel VBA 日付が西暦ではなく和暦になっている - 備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20150924/20150924172150.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-24 17:19:18</published>
  <title>Excel VBA 日付が西暦ではなく和暦になっている</title>
  <type>rich</type>
  <url>https://kagasu.hatenablog.com/entry/20150924/1443082758</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
