-- ·|­û / µù¥U -- ¡@
¡@±b¸¹¡G
¡@±K½X¡G
¡@ | µù¥U | §Ñ°O±K½X
10/8 ·s®Ñ¨ì¡I 10/1 ·s®Ñ¨ì¡I 9/24 ·s®Ñ¨ì¡I 9/18 ·s®Ñ¨ì¡I
ÁʮѬyµ{¡EQ & A¡E¯¸°È¯d¨¥ª©¡E«ÈªA«H½c
¢x 3ds Max¢x Maya¢x Rhino¢x After Effects¢x SketchUp¢x ZBrush¢x Painter¢x Unity¢x
¢x PhotoShop¢x AutoCad¢x MasterCam¢x SolidWorks¢x Creo¢x UG¢x Revit¢x Nuke¢x
¢x C#¢x C¢x C++¢x Java¢x ¹CÀ¸µ{¦¡¢x Linux¢x ´O¤J¦¡¢x PLC¢x FPGA¢x Matlab¢x
¢x Àb«È¢x ¸ê®Æ®w¢x ·j¯Á¤ÞÀº¢x ¼v¹³³B²z¢x Fluent¢x VR+AR¢x ANSYS¢x ²`«×¾Ç²ß¢x
¢x ³æ´¹¤ù¢x AVR¢x OpenGL¢x Arduino¢x Raspberry Pi¢x ¹q¸ô³]­p¢x Cadence¢x Protel¢x
¢x Hadoop¢x Python¢x Stm32¢x Cortex¢x Labview¢x ¤â¾÷µ{¦¡¢x Android¢x iPhone¢x
¥i¬d®Ñ¦W,§@ªÌ,ISBN,3dwoo®Ñ¸¹
¸Ô²Ó®ÑÄy¤ÀÃþ

Access 2007 VBAÄ_¨å

( ²Åé ¦r)
§@ªÌ¡G[¬ü]HelenÃþ§O¡G1. -> Office -> OFFICE -> ACCESS
ĶªÌ¡G
¥Xª©ªÀ¡G¤H¥Á¶l¹q¥Xª©ªÀAccess 2007 VBAÄ_¨å 3dWoo®Ñ¸¹¡G 13086
¸ß°Ý®ÑÄy½Ð»¡¥X¦¹®Ñ¸¹¡I

¡i¯Ê®Ñ¡j
¡i¤£±µ¨ü­qÁÊ¡j

¥Xª©¤é¡G6/1/2008
­¶¼Æ¡G473
¥úºÐ¼Æ¡G
¯¸ªø±ÀÂË¡G
¦L¨ê¡G»y¨t¡G ( ²Åé ª© )
¡i¤£±µ¨ü­qÁÊ¡j
ISBN¡G9787115175984
§@ªÌ§Ç¡@|¡@ĶªÌ§Ç¡@|¡@«e¨¥¡@|¡@¤º®e²¤¶¡@|¡@¥Ø¿ý¡@|¡@§Ç
(²Åé®Ñ¤W©Ò­z¤§¤U¸ü³sµ²¯Ó®É¶O¥\, ®¤¤£¾A¥Î¦b¥xÆW, ­YŪªÌ»Ý­n½Ð¦Û¦æ¹Á¸Õ, ®¤¤£«OÃÒ)
§@ªÌ§Ç¡G

ĶªÌ§Ç¡G

«e¨¥¡G

¤º®e²¤¶¡G

Access¬OMicrosoft¤½¥qOffice¿ì¤½®M¥ó¤¤ªº¼Æ¾Ú®wÀ³¥Îµ{§Ç¡A¦ÓAccess VBA¬OAccessªº½sµ{»y¨¥¡C§Q¥ÎVBA¤£¶È¯à°÷³]­p±`¥Îªº¤p¤u¨ã¡B¤p³n¥ó¡AÁÙ¯à°÷½s¼g¥N½X¡AÅý«Ü¦hµ{§Ç¦@¨É¼Æ¾Ú¡C¥»®Ñ¥þ­±¤¶²Ð¤FAccess VBAªºÀ³¥Î¡C­º¥ý¤¶²Ð¦UºØOffice²Õ¥ó¤Î¨ä¥Î³~¡AµM¦Z¸Ô²Ó¤¶²Ð¤F³o¨Ç²Õ¥ó¡A¥H¤Î¦p¦ó¦b²Õ¥ó¤§¶¡¦@¨É¦UºØ¼Æ¾Ú¡F³Ì¦Z¤¶²Ð¤F§ó¬°°ª¯Åªº¥DÃD¡A¥]¬AVB 6.0¡BAccess¥[¸ü¶µ¡BVisual Studio 2005¦@¨É¥[¸ü¶µ¡B¨Ï¥ÎXML¹ê²{¦Û©w¸qOffice 2007¥\¯à°Ï¡A¥H¤Î»PSQL Server¼Æ¾Ú®wªº¥æ¤¬µ¥¡C
¡@¡@¥»®Ñ¤º®eÂ×´I¡A¦}¥B¦b°t®Mºô¯¸¤W´£¨Ñ¤F®Ñ¤¤©Ò¦³ªº¥Ü¨Ò¤å¥ó©M¥N½X¡A¦³§U¤_ŪªÌ³q¹L¿Ë¨­¹ê½î´x´¤Access VBAªº±j¤j¥\¯à¡C¥»®Ñ¾A¦XOfficeªº¤¤°ª¯Å¥Î¤á¥H¤Î§Æ±æ¾Ç²ßAccess VBAªº¤H­û°Ñ¦Ò¡C


¥Ø¿ý¡G

²Ä1³¡¤À¡@Office²Õ¥ó¤Î¨ä³Ì¨Î¥Î³~

²Ä1³¹¡@¦bAccess¤¤¦sÀx©MÅã¥Ü¼Æ¾Ú¡@3
1.1¡@Office¼Æ¾Ú¥æ´«Â²¥v¡@3
1.2¡@¦bAccess¤¤¦sÀx¼Æ¾Ú¡@4
1.3¡@¦bAccessµ¡Åé©M³øªí¤¤Åã¥Ü¼Æ¾Ú¡@4
1.3.1¡@³Ð«ØAccess®M¥Î«H¨ç¡@7
1.3.2¡@¦bAccess¤¤³Ð«Ø¤u§@ªíÃþ«¬ªº³øªí¡@9
1.4¡@¤pµ²¡@19

²Ä2³¹¡@±qAccess¤¤³Ð«ØWord¤åÀÉ¡@20
2.1¡@¨Ï¥ÎTypeText¤èªk¬°Word¤åÀɶñ¥RAccess¼Æ¾Ú¡@20
2.2¡@¨Ï¥ÎWord¼ÒªO³Ð«Ø®æ¦¡¤ÆªºWord¤åÀÉ¡@23
2.2.1¡@®Ññ¡@23
2.2.2¡@¤åÀÉÄÝ©Ê¡@29
2.3¡@µ¡Åé°ì¤åÀÉ¡@33
2.4¡@¤pµ²¡@36

²Ä3³¹¡@¨Ï¥ÎExcel¤ÀªR¼Æ¾Ú¡@37
3.1¡@±NAccess¼Æ¾Ú¾É¥X¨ì¥¼®æ¦¡¤Æªº¤u§@ªí¡@37
3.2¡@¨Ï¥ÎExcel¼ÒªO³Ð«Ø¶ñ¥R¤FAccess¼Æ¾Úªº®æ¦¡¤Æ¤u§@ªí¡@39
3.3¡@¨Ï¥ÎVBA¥N½X¹ïExcel¤u§@ªí¶i¦æ®æ¦¡¤Æ¡@47
3.4¡@¤pµ²¡@53

²Ä4³¹¡@¨Ï¥ÎOutlook¶i¦æ²Õ´©M³q«H¡@54
4.1¡@±N¬ù·|©M¥ô°È¾É¥X¨ìOutlook¡@55
4.2¡@±N¤é°O«H®§¾É¥X¨ìOutlook¡@60
4.3¡@±qAccessªí³Ð«Ø¹q¤l¶l¥ó¡@62
4.4¡@¤pµ²¡@65

²Ä2³¡¤À¡@½s¼gVBA¥N½X¡A¦bOffice²Õ¥ó¤§¶¡¥æ´«¼Æ¾Ú

²Ä5³¹¡@¨Ï¥ÎAccess¼Æ¾Ú¡@69
5.1¡@¦bAccess 2007¤¤¨Ï¥Î®榡ªº¼Æ¾Ú®w¡@71
5.2¡@¸ÑºÃ¹ï¶H¼Ò«¬²Õ¥óªº¤Þ¥Î¡@71
5.2.1¡@(·s/ÂÂ)DAO¹ï¶H¼Ò«¬¡@74
5.2.2¡@ADO¹ï¶H¼Ò«¬¡@84
5.3¡@±NDAO¥N½XÂà´«¬°ADO¥N½X¡@99
5.4¡@¤pµ²¡@100

²Ä6³¹¡@¨Ï¥ÎWord¤åÀÉ©M¼ÒªO¡@101
6.1¡@Office 2007¤¤¤º¸mªºWord¾É¥X¡@102
6.2¡@¨Ï¥ÎAutomation¥N½X±NAccess¼Æ¾Ú¾É¥X¨ìWord¡@105
6.2.1¡@Word¹ï¶H¼Ò«¬¡@106
6.2.2¡@¿ï¾Ü±NAccess¼Æ¾Ú¦X¦}¨ìWordªº¤èªk¡@110
6.3¡@¤pµ²¡@137

²Ä7³¹¡@¨Ï¥ÎExcel¤u§@ªí¡@138
7.1¡@²³æ¦a±NAccess¼Æ¾Ú¾É¥X¨ìExcel¡@138
7.2¡@Excel¹ï¶H¼Ò«¬¡@141
7.3¡@³Ì²³æ¦a®æ¦¡¤Æ¤u§@ªí¡@143
7.4¡@¨Ï¥Î¥N½X®æ¦¡¤Æªí®æ¦¡¤u§@ªí¡@147
7.5¡@¤u§@®É¶¡ªí¡@151
7.6¡@¤pµ²¡@162

²Ä8³¹¡@¨Ï¥ÎOutlook¶µ¥Ø¡@163
8.1¡@±N¼Æ¾Ú¾É¥X¬°Outlook¶µ¥Ø¡@164
8.1.1¡@¨Ï¥Î¡§¦¬¶°¼Æ¾Ú¡¨²Õ¡@164
8.1.2¡@¨Ï¥Î¡§¾É¤J¡¨²Õ¾É¤J©ÎÃì±µOutlook¼Æ¾Ú¡@164
8.1.3¡@¨Ï¥Î¥Ü¨Ò¼Æ¾Ú®w©Mµ¡Åé¡@169
8.2¡@Outlook¹ï¶H¼Ò«¬¡@171
8.2.1¡@Exploer¡BInspector©M¨ä¥LOutlook¹ï¶H¡@172
8.2.2¡@¤Þ¥ÎOutlook¹ï¶Hªº»yªk¡@173
8.2.3¡@¦bVBA¥N½X¤¤¤Þ¥ÎOutlook¶µ¡@175
8.3¡@¨Ï¥ÎOutlook¬ù·|¡@176
8.4¡@¨Ï¥ÎOutlook¥ô°È¡@181
8.5¡@¨Ï¥ÎOutlookÁp¨t¤H¡@186
8.6¡@¤pµ²¡@192

²Ä9³¹¡@¨Ï¥Î¤å¥ó©M¤å¥ó§¨¡@193
9.1¡@¨Ï¥ÎWindows Explorer¤å¥ó§¨¡@194
9.1.1¡@Office FileDialog¹ï¶H¡@194
9.1.2¡@FileSystemObject¡@197
9.2¡@³Æ¥÷¼Æ¾Ú®w¡@200
9.3¡@¨Ï¥Î¤å¥»¤å¥ó¡@203
9.3.1¡@±N¼Æ¾Ú¼g¤J¤å¥»¤å¥ó¡@204
9.3.2¡@±q¤å¥»¤å¥óŪ¨ú¼Æ¾Ú¡@211
9.4¡@¨Ï¥Îªþ¥ó¦r¬q¡@214
9.4.1¡@±N¤å¥ó¸ü¤Jªþ¥ó¦r¬q¡@216
9.4.2¡@±Nªþ¥ó«O¦s¨ì¤å¥ó¡@218
9.5¡@¤pµ²¡@219

²Ä10³¹¡@¨Ï¥Î¥~³¡¼Æ¾Ú¡@220
10.1¡@³q¹LTransferText¤èªk¨Ï¥Î¤å¥»¤å¥ó¡@221
10.1.1¡@³Ð«Ø¾É¤J©Î¾É¥X³W­S¡@221
10.1.2¡@¦bVBA¥N½X¤¤¾É¤J©Î¾É¥X¤å¥»¤å¥ó¡@224
10.2¡@¨Ï¥Î¿ò¯d¼Æ¾Ú®w©M¹q¤lªí®æ¤å¥ó¡@233
10.2.1¡@¾É¤J¼Æ¾Ú®w¤å¥ó¡@233
10.2.2¡@¾É¤J¹q¤lªí®æ¤å¥ó¡@235
10.2.3¡@¾É¥X¼Æ¾Ú®w©M¹q¤lªí®æ¤å¥ó¡@240
10.3¡@¨Ï¥ÎXML©MHTML¤å¥ó¡@242
10.3.1¡@¾É¤JHTML©MXML¤å¥ó¡@242
10.3.2¡@¾É¥XHTML©MXML¤å¥ó¡@245
10.4¡@¨Ï¥Î¹q¤l¶l¥óµo°e¾É¥Xªº¤å¥»¤å¥ó¡@248
10.5¡@¤pµ²¡@250

²Ä11³¹¡@±NAccess»POutlookÁp¨t¤H¦P¨B¡@251
11.1¡@®Ú¾Ú¤@²ÕÃì±µªí³Ð«Ø¥h³W­S¤Æªí¡@251
11.2¡@¤ñ¸ûOutlook©MAccessÁp¨t¤H¡@255
11.2.1¡@­««ØAccess©MOutlook¼Æ¾Úªº¥­­±¤å¥óªí¡@256
11.2.2¡@±NÁp¨t¤H¼Æ¾Ú±qAccess´_¨î¨ìOutlook(©Î¤Ï¦V¾Þ§@)¡@266
11.3¡@¨Ï¥Îªþ¥ó¡@278
11.4¡@¤pµ²¡@282

²Ä12³¹¡@²`¤J¾Ç²ß¡@283
12.1¡@³Ð«Ø¤£¦P¼Ë¦¡ªºWordµo¹B¼Ðñ¡@283
12.2¡@®Ú¾ÚAccess¬d¸ß³Ð«ØExcel¼Æ¾Ú³zµø¹Ï¡@295
12.3¡@¨Ï¥Î¹q¤l¶l¥óµo°eµo¹B³øªí©M­«·s­q³f³øªí¡@302
12.4¡@¤pµ²¡@305

²Ä3³¡¤À¡@¬°Office²K¥[§ó¦h¥\¯à

²Ä13³¹¡@¨Ï¥ÎVisual Basic 6.0³Ð«ØCOM¥[¸ü¶µ¡@309
13.1¡@¨Ï¥ÎVisual Basic 6.0³Ð«ØCOM¥[¸ü¶µ¡@310
13.1.1¡@¨Ï¥ÎCOM¥[¸ü¶µ¼ÒªO¡@310
13.1.2¡@³Ð«ØLNC Control Renaming COM¥[¸ü¶µ¡@312
13.1.3¡@¦w¸ËCOM¥[¸ü¶µ¡@329
13.1.4¡@¹ïCOM¥[¸ü¶µ¶i¦æ¬G»Ù±Æ°£¡@331
13.1.5¡@¨Ï¥ÎCOM¥[¸ü¶µ¡@332
13.2¡@¤ñ¸ûCOM¥[¸ü¶µ»PAccess¥[¸ü¶µ¡@333
13.3¡@¤pµ²¡@333

²Ä14³¹¡@³Ð«ØAccess¥[¸ü¶µ¡@334
14.1¡@Access¥[¸ü¶µªº§@¥Î¡@335
14.2¡@¥[¸ü¶µÃþ«¬¡@335
14.3¡@³Ð«Ø®w¼Æ¾Ú®w¡@336
14.3.1¡@µæ³æ¥[¸ü¶µ¡@338
14.3.2¡@¦V¾É¡@339
14.3.3¡@Äݩʥͦ¨¾¹¡@340
14.4¡@½s¼g¥[¸ü¶µ®É»Ý­n¤F¸Ñªº¤º®e¡@341
14.4.1¡@¥[¸ü¶µ¥N½Xªº¯S®í»Ý¨D¡@341
14.4.2¡@¦³Ãö¥[¸ü¶µµ²ºcªº´£¥Ü¡@341
14.5¡@Extra¥[¸ü¶µ¥N½X¡@342
14.5.1¡@Extras¿ï¶µ¡@342
14.5.2¡@basExtras¼Ò¶ô¡@344
14.5.3¡@³Æ¥÷¼Æ¾Ú®w¡@346
14.5.4¡@³Æ¥÷¦ZºÝ¼Æ¾Ú®w¡@348
14.5.5¡@¦C¥X¬d¸ß¦r¬q¡@352
14.5.6¡@¦C¥Xªí¦r¬q¡@353
14.5.7¡@¨ä¥L¹Lµ{¡@355
14.5.8¡@§¹¦¨¥[¸ü¶µ¡@357
14.6¡@¹ï¥[¸ü¶µ¶i¦æ¬G»Ù±Æ°£¡@357
14.7¡@¦w¸Ë¥[¸ü¶µ¡@360
14.8¡@¨Ï¥ÎExtras 2007¥[¸ü¶µ¡@362
14.8.1¡@Extras¿ï¶µ¡@362
14.8.2¡@³Æ¥÷¼Æ¾Ú®w¡@363
14.8.3¡@³Æ¥÷¦ZºÝ¼Æ¾Ú®w¡@363
14.8.4¡@¦C¥X¬d¸ß¦r¬q¡@363
14.8.5¡@¦C¥Xªí¦r¬q¡@364
14.9¡@¤pµ²¡@364

²Ä15³¹¡@¦bAccess¼Æ¾Ú®w©M¥[¸ü¶µ¤¤¨Ï¥ÎXML¦Û©w¸q¥\¯à°Ï¡@365
15.1¡@³Ð«Ø©M½s¿èXML¥N½Xªº¦³¥Î¤u¨ã¡@366
15.1.1¡@XML Notepad 2007¡@366
15.1.2¡@VB 2005 XML½s¿è¾¹¡@368
15.1.3¡@Office 2007 Custom UI½s¿è¾¹¡@368
15.2¡@¦bAccess¼Æ¾Ú®w¤¤¦Û©w¸q¥\¯à°Ï¡@368
15.2.1¡@³Ð«ØXML¥N½X¡@370
15.2.2¡@VBA¥N½X¡@384
15.2.3¡@µ¡Åé¥\¯à°Ï¡@388
15.3¡@¨Ï¥ÎAccess¥[¸ü¶µ¦Û©w¸q¥\¯à°Ï¡@389
15.4¡@¤pµ²¡@394

²Ä16³¹¡@¨Ï¥ÎVisual Studio 2005¦@¨É¥[¸ü¶µ¦Û©w¸qAccess¥\¯à°Ï¡@395
16.1¡@·Ç³Æ½s¼gVisual Studio¥[¸ü¶µ¡@395
16.1.1¡@¦VOffice²K¥[.NET¤ä«ù¡@395
16.1.2¡@­×§ïConnectÃþ¼Ò¶ô¥N½X¡@405
16.1.3¡@¦V¦@¨Éªº¥[¸ü¶µ²K¥[¥\¯à¡@406
16.1.4¡@½Õ¸Õ¥[¸ü¶µ¡@411
16.1.5¡@¥Í¦¨¦}¦w¸Ë¥[¸ü¶µ¡@412
16.1.6¡@¨Ï¥Î¥[¸ü¶µ¡@414
16.2¡@¤pµ²¡@415

²Ä17³¹¡@¨Ï¥ÎWindows Script Host³Ð«Ø³æ¿Wªº¸}¥»¡@417
17.1¡@³B²zWindows Script Host¸}¥»ªº¤u¨ã¡@417
17.1.1¡@Microsoft¸}¥»½s¿è¾¹¡@417
17.1.2¡@VBScriptÀ°§U¤å¥ó¡@421
17.2¡@VBA»PVBScript¥N½Xªº°Ï§O¡@423
17.3¡@¦³¥Îªº¸}¥»¡@425
17.3.1¡@«Ø¥ß¸}¥»¡@426
17.3.2¡@Office¸}¥»¡@431
17.3.3¡@¨ä¥L¸}¥»¡@435
17.4¡@¨Ï¥ÎWindows Vista¥ô°È­p¹ºµ{§Ç¦w±Æ³Æ¥÷¸}¥»¡@437
17.5¡@¤pµ²¡@442

²Ä18³¹¡@¨Ï¥ÎSQL Server¼Æ¾Ú¡@443
18.1¡@Àò±oSQL Server 2005¡@444
18.2¡@·Ç³Æ­n¤É¾E¨ìSQL ServerªºAccess¼Æ¾Ú®w¡@445
18.3¡@¬°Access¼Æ¾Ú°t¸mSQL Server 2005¡@446
18.3.1¡@³q¹L¨¾¤õùÙ¡@452
18.3.2¡@¨ä¥L¦w¥þ»Ùê¡@456
18.4¡@¨Ï¥Î¤É¾E¦V¾É¡@457
18.4.1¡@±NAccessªíÂà´«¬°SQL Serverªí¡@457
18.4.2¡@³Ð«Ø«È¤á¾÷/ªA°È¾¹À³¥Îµ{§Ç¡@463
18.5¡@Ãì±µ¨ìSQL Serverªí¤¤ªº¼Æ¾Ú¡@466
18.6¡@¥Î¤_Access ªºSQL Server¾E²¾§U¤â¡@473
18.7¡@¤pµ²¡@473
§Ç¡G