<?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>ゼロ埋め（ゼロパディング）された数値（のような文字列）の左側の0を削除し、普通の数字に戻す方法です。 例としてこのようなテーブルのデータを用いてやってみます。 クエリデザインです。 「00123」といった文字列ならVal関数が使えますが\やカンマ、全角数字に対応できません。しかし、CDbl関数やCInt関数といった関数を用いればこれらにも対応できます。 いろいろな例が考えられますが、以下に2つの例を示します。 どちらも左側の0（及び\とカンマ）を取り除きますが、前者は数値型に、後者は文字列型に変換します。 ゼロ埋め削除A: CDbl([数字文字列]) ゼロ埋め削除B: Format(CCur(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.accessdbstudy.net%2Fentry%2F20080820%2Fp1&quot; title=&quot;ゼロ埋めされた数値形式の文字列の左側の0を取り除く - もう一度学ぶ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/20170801/20170801005657.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-08-20 00:00:00</published>
  <title>ゼロ埋めされた数値形式の文字列の左側の0を取り除く</title>
  <type>rich</type>
  <url>https://www.accessdbstudy.net/entry/20080820/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
