{"id":93,"date":"2020-01-03T10:29:21","date_gmt":"2020-01-03T01:29:21","guid":{"rendered":"https:\/\/have-stone.iobb.net\/wordpress\/?p=93"},"modified":"2020-01-18T14:28:53","modified_gmt":"2020-01-18T05:28:53","slug":"access-vba-1","status":"publish","type":"post","link":"https:\/\/have-stone.iobb.net\/wordpress\/?p=93","title":{"rendered":"Access VBA (1)"},"content":{"rendered":"\n
\u975e\u9023\u7d50\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u884c\u3046\u30021\u56de\u76ee\u306f\u65b0\u898f\u30c7\u30fc\u30bf\u767b\u9332\u3002 2\u56de\u76ee\u3078<\/a><\/p>\n","protected":false},"excerpt":{"rendered":" \u975e\u9023\u7d50\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u884c\u3046\u30021\u56de\u76ee\u306f\u65b0\u898f\u30c7\u30fc\u30bf\u767b\u9332\u3002 \u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u3068\u975e\u9023\u7d50\u30d5\u30a9\u30fc\u30e0\u306e\u753b\u9762\u30b5\u30f3\u30d7\u30eb\u3092\u793a\u3059\u3002 (\u305f\u3060… read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,14],"tags":[5,7],"_links":{"self":[{"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":4,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/have-stone.iobb.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u30c6\u30fc\u30d6\u30eb\u5b9a\u7fa9\u3068\u975e\u9023\u7d50\u30d5\u30a9\u30fc\u30e0\u306e\u753b\u9762\u30b5\u30f3\u30d7\u30eb\u3092\u793a\u3059\u3002
(\u305f\u3060\u3057\u3001Access2010\u306b\u3066\u52d5\u4f5c\u78ba\u8a8d)<\/p>\n\n\n\n<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Private Sub cmd_Add_Click()\n\n Dim db As DAO.Database\n Dim rs As DAO.Recordset\n \n Set db = CurrentDb()\n Set rs = db.OpenRecordset(\"tbl_Sample1\")\n \n rs.AddNew\n \n rs!fld_Id = txt_Id\n rs!fld_Name = txt_Name\n rs!fld_Data1 = txt_Data1\n rs!fld_Data2 = txt_Data2\n rs!fld_Data3 = txt_Data3\n \n rs.Update\n\n'----\u898b\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306e\u51e6\u7406----'\n'---- \u5b9f\u969b\u306e\u51e6\u7406\u306b\u306f\u7121\u95a2\u4fc2-----'\n txt_Id = \"\"\n txt_Name = \"\"\n txt_Data1 = \"\"\n txt_Data2 = \"\"\n txt_Data3 = \"\"\n '------------ -----------------'\n \n rs.Close: Set rs = Nothing\n db.Close: Set db = Nothing\n \nEnd Sub<\/code><\/pre>\n\n\n\n