µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
Excelµ{¦¡°Ï
» °õ¦æADODB.Connection.Execute«áExcel¿ù»~«±Ò
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
°õ¦æADODB.Connection.Execute«áExcel¿ù»~«±Ò
li_hsien
µoµu®ø®§
¥[¬°¦n¤Í
li_hsien
·í«eÂ÷½u
UID
15435
©«¤l
248
¥DÃD
55
ºëµØ
0
¿n¤À
314
ª÷¿ú
314
ÂI¦W
213
§@·~¨t²Î
XP / WIN7
³nÅ骩¥»
2003 / 2007
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
Tainan
¦b½u®É¶¡
796 ¤p®É
µù¥U®É¶¡
2013-10-18
³Ì«áµn¿ý
2024-11-15
¤¤¾Ç¥Í
©«¤l
248
¥DÃD
55
ºëµØ
0
¿n¤À
314
ÂI¦W
213
§@·~¨t²Î
XP / WIN7
³nÅ骩¥»
2003 / 2007
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
Tainan
µù¥U®É¶¡
2013-10-18
³Ì«áµn¿ý
2024-11-15
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2016-5-27 09:30
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
°õ¦æADODB.Connection.Execute«áExcel¿ù»~«±Ò
¥»©«³Ì«á¥Ñ li_hsien ©ó 2016-5-27 09:44 ½s¿è
±`¥ÎVBA¤USQL»yªk¶i¦æ¸ê®Æ®w¬d¸ß
¦ý³o¦¸¨Ï¥ÎªºSQL»yªk¬d¸ß®É
°õ¦æ¨ìADODB.Connection.Execute(SQL»yªk)
Excel¾ãÓ¿ù»~«±Ò¡A¥X²{¦^³øµe±
¤U¸ü
(29.05 KB)
2016-5-27 09:26
µ{¦¡½T»{¥i¥¿±`³sµ²DB¶i¦æ¬d¸ß
¹Á¸Õ¥H¸û²©ö²µuªºSQL¶i¦æ¬d¸ß¡A¬O¥i¥H¥¿±`¦L¥Xµ²ªG
¥i¯à¬O¥Ø«e©Òn°õ¦æªºSQL¤Óªø?JOIN¤Ó¦hTABLE? (JOIN¤T±iTABLE)
[SQL»yªk¤jP¦p¤U]
str = "select a.x1,b.x2,a.x3,d.x4,d.x5,d.x6,e.x7,e.x8 " & _
"from AAA a " & _
"join BBB b on a.iii=b.xxx " & _
"join CCC c on a.jjj=c.yyy " & _
"join DDD d on c.kkk=d.zzz or c.lll=d.mmm " & _
"left join EEE e on d.nnn=e.ooo " & _
"where a.ppp='" & Worksheets(1).TextBox1.Value & "'"
½Æ»s¥N½X
¦V¦U¦ì½Ð¯q¬O§_¦³¸Ñ¨M¤è®×
¦A½Ð«ü±Ð
ÁÂÁÂ !
¼Ó¥D¼ö©«
ªí³æÀx¦s®æ¦Û°Ê¤U©Ô§ó·s
§ïµ½¤jµ§¸ê®Æ³B²z
¨â¤u§@ªí¤ñ¹ï ·s¼Wקï
icon¸ô®|°ÝÃD
¨âÓ°ÝÃD¡G¤ñ¹ï°j°é & Àx¦s®æ°{Ã{
¶¥¼hÅÞ¿è§PÂ_
EXCEL 2007 VBA ¦bEXCEL 2010 °õ¦æ¥X°ÝÃD
®æ¦¡«öENTER¤~¯àÂà´«
°õ¦æ¶¥¬q¿ù»~-2147417848(80010108) Automa
³B²z¤@©w®É¶¡ ¤¤Â_°õ¦æ
¦¬ÂÃ
¤À¨É
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã
ÀR«ä¦Û¦b :
¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·