{"id":504,"date":"2019-08-16T03:40:41","date_gmt":"2019-08-16T07:40:41","guid":{"rendered":"https:\/\/access-diva.com\/blog\/?p=504"},"modified":"2019-08-16T03:40:41","modified_gmt":"2019-08-16T07:40:41","slug":"quotes-within-quotes-apostrophes-also","status":"publish","type":"post","link":"https:\/\/access-diva.com\/blog\/?p=504","title":{"rendered":"Quotes within Quotes (Apostrophes also)"},"content":{"rendered":"<p>You want to use TEXT as the <strong>Control Source<\/strong> of a <strong>Control<\/strong> on your Form but you keep getting an error OR it doesn&#8217;t show as expected because your text contains an apostrophe or quotation mark(s). For help see chart below&#8230;<\/p>\n<table width=\"862\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"232\"><strong>Control Source Property<\/strong><\/td>\n<td style=\"text-align: center;\" width=\"387\"><strong>Result<\/strong><\/td>\n<td style=\"text-align: center;\" width=\"243\"><strong>Explanation<\/strong><\/td>\n<\/tr>\n<tr>\n<td>=&#8221;This is literal text.&#8221;<\/td>\n<td>This is literal text.<\/td>\n<td>Literal text goes in quotes.<\/td>\n<\/tr>\n<tr>\n<td>=&#8221;Here is a &#8220;word&#8221; in quotes&#8221;<\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-506\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2019\/08\/ExpressionEntered.png\" alt=\"\" width=\"388\" height=\"127\" srcset=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2019\/08\/ExpressionEntered.png 388w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2019\/08\/ExpressionEntered-300x98.png 300w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2019\/08\/ExpressionEntered-150x49.png 150w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/td>\n<td width=\"243\">Access thinks the quote finishes before word, and does not know what to do with the remaining characters.<\/td>\n<\/tr>\n<tr>\n<td>=&#8221;Here is a &#8220;&#8221;word&#8221;&#8221; in quotes&#8221;<\/td>\n<td>Here is a &#8220;word&#8221; in quotes<\/td>\n<td width=\"243\">You must double-up the quote character inside quotes.<\/td>\n<\/tr>\n<tr>\n<td>=&#8221;Here is a &#8220;&#8221;word&#8221;&#8221;&#8221;<\/td>\n<td>Here is a &#8220;word&#8221;<\/td>\n<td width=\"243\">The doubled-up quotes after word plus the closing quote gives you 3 in a row.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When quotes or apostrophes appear in TEXT use:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">&quot;field =&quot;&quot;&quot; &amp; Me.field &amp; &quot;&quot;&quot;&quot;<\/pre>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_504\" class=\"pvc_stats all  \" data-element-id=\"504\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You want to use TEXT as the Control Source of a Control on your Form but you keep getting an error OR it doesn&#8217;t show as expected because your text contains an apostrophe or quotation mark(s). For help see chart below&#8230;<\/p>\n<p> Control Source Property Result Explanation =&#8221;This is literal text.&#8221; This is literal text. Literal [&#8230;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_504\" class=\"pvc_stats all  \" data-element-id=\"504\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,74,71,44],"tags":[21,84,79],"class_list":["post-504","post","type-post","status-publish","format-standard","hentry","category-access-tips","category-controls","category-forms","category-text-boxes","tag-controls","tag-database-design","tag-text-boxes","odd"],"_links":{"self":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=504"}],"version-history":[{"count":4,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/504\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}