{"id":1138,"date":"2023-12-09T10:53:05","date_gmt":"2023-12-09T01:53:05","guid":{"rendered":"https:\/\/beiyan-tool.info\/?p=1138"},"modified":"2023-12-09T10:54:21","modified_gmt":"2023-12-09T01:54:21","slug":"access-vba%e3%81%a7%e5%8a%b9%e7%8e%87%e7%9a%84%e3%81%ab%e5%85%a8%e3%81%a6%e3%81%ae%e3%82%af%e3%82%a8%e3%83%aa%e3%81%a8%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e4%b8%80%e6%8b%ac%e3%81%a7%e9%96%89","status":"publish","type":"post","link":"https:\/\/beiyan-tool.info\/?p=1138","title":{"rendered":"Access VBA\u3067\u52b9\u7387\u7684\u306b\u5168\u3066\u306e\u30af\u30a8\u30ea\u3068\u30c6\u30fc\u30d6\u30eb\u3092\u4e00\u62ec\u3067\u9589\u3058\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Access VBA\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u969b\u3001\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d\u306b\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u540c\u6642\u306b\u958b\u304f\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u73fe\u5728\u958b\u3044\u3066\u3044\u308b\u30c6\u30fc\u30d6\u30eb\u3084\u30af\u30a8\u30ea\u304c\u591a\u3044\u3068\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d\u304c\u56f0\u96e3\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001Access VBA\u3067\u7c21\u5358\u306b\u73fe\u5728\u958b\u3044\u3066\u3044\u308b\u5168\u3066\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u30af\u30a8\u30ea\u3092\u4e00\u62ec\u3067\u9589\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u3066\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u308a\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u7d42\u7684\u306b\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306a\u306e\u3067\u3001\u30b3\u30d4\u30da\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"Access VBA\u3067\u52b9\u7387\u7684\u306b\u5168\u3066\u306e\u30af\u30a8\u30ea\u3068\u30c6\u30fc\u30d6\u30eb\u3092\u4e00\u62ec\u3067\u9589\u3058\u308b\u65b9\u6cd5\" >Sub \u30af\u30a8\u30ea\u3092\u9589\u3058\u308b()\r\n\r\n    Dim objACC As AccessObject\r\n\r\n    For Each objACC In CurrentData.AllQueries\r\n        If objACC.IsLoaded Then\r\n            DoCmd.Close AcObjectType.acQuery, objACC.Name, AcCloseSave.acSaveNo\r\n        End If\r\n    Next\r\n    \r\nEnd Sub\r\n\r\nSub \u30c6\u30fc\u30d6\u30eb\u3092\u9589\u3058\u308b()\r\n\r\n    Dim objACC As AccessObject\r\n    \r\n    For Each objACC In CurrentData.AllTables\r\n        If objACC.IsLoaded Then\r\n            DoCmd.Close AcObjectType.acTable, objACC.Name, AcCloseSave.acSaveNo\r\n        End If\r\n    Next\r\n    \r\nEnd Sub<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Access VBA\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u969b\u3001\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d\u306b\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u540c\u6642\u306b\u958b\u304f\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u73fe\u5728\u958b\u3044\u3066\u3044\u308b\u30c6\u30fc\u30d6 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1144,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":2,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1143,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions\/1143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=\/wp\/v2\/media\/1144"}],"wp:attachment":[{"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beiyan-tool.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}