<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>accs2014</author_name>
  <author_url>https://blog.hatena.ne.jp/accs2014/</author_url>
  <blog_title>もう一度学ぶMS-Access</blog_title>
  <blog_url>https://www.accessdbstudy.net/</blog_url>
  <categories>
    <anon>Access Tips</anon>
  </categories>
  <description>ある日付から、その日付が属する月の日数を求めるというものです。 例としてこのようなテーブルをもとに「登録日」が属する月の日数を求めてみます。 クエリのデザインビューです。 次のような列を設けます。 月日数: Day(DateSerial(Year([登録日]),Month([登録日])+1,0)) まずDateSerial関数により「登録日が属する月の翌月の0日目」を求めています。これは結果的に「登録日が属する月の末日」を表す日付型の値となります。 その結果に対しDay関数を用いることで、「登録日が属する月の日数」が分かるというわけです。 データシートビューです。 7月なら31日、11月なら3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.accessdbstudy.net%2Fentry%2F20080523%2Fp1&quot; title=&quot;日付からその月の日数を求める - もう一度学ぶMS-Access&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/a/accs2014/20181111/20181111112821.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-05-23 00:00:00</published>
  <title>日付からその月の日数を求める</title>
  <type>rich</type>
  <url>https://www.accessdbstudy.net/entry/20080523/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
