ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¨D¨Ï¥Îvba ping

¦^´_ 10# c_c_lai
9#µ{¦¡ªº«e´£¬O¤w°õ¦æ8#ªþÀɪº ipchange()
¦p·|·¸¦ìÀ³¸ê®Æ¶q¤j®É¬O  C As Integer
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 11# GBKEE
¶¶±a½Ð±Ð±z¡G
¥H¤U´ú¸Õ©ó2003 Excel¤¤¡A ©ó Set cnn «áµo²{ cnn ­È¬° ""¡A
©Ò¥H¦b .Open ®É«K¥X¿ù¤F¡C¦b¤u¨ã->³]©w¤Þ¥Î¶µ¥Ø¤¤­nª`·N¨º¨Ç¶µ¦¸¡H
¦ý¬O¦¹»yªk¦b 2010 Àô¹Ò¤U°õ¦æ³£ OK¡A¥¿½TÀ³¦p¦ó³B¸Ì¡H
P.S. ³o¬O§Ú¦b Excel¤u§@ªí³æ»PAccess¸ê®Æ®wªºVBA¤¬°Ê°ÝÃD ¤¤ªº´£°Ý¡A
     ¦¹³¡¤À¬O¬°¤F­n¦P®É¥H ADODB »yªk¨Ó³B²z¤u§@ªí³æ¤º¤§¸ê®Æ¿ý¦Ó³]©wªº¡C
  1. Sub Test()
  2.     Dim cnn As Object       '  New ADODB.Connection
  3.     Dim cmd As Object       '  New ADODB.Command
  4.     Dim rs As Object        '  New ADODB.Recordset

  5.     Set cnn = CreateObject("ADODB.Connection")
  6.     Set rs = CreateObject("ADODB.Recordset")
  7.     Set cmd = CreateObject("ADODB.Command")

  8.     With cnn
  9.         If .State = 1 Then .Close    '  adStateOpen
  10.         
  11.         .ConnectionString = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=" & _
  12.                             ActiveWorkbook.Path & Application.PathSeparator & ActiveWorkbook.Name
  13.         .Open     
  14.     End With
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 12# c_c_lai
http://neural.cs.nthu.edu.tw/jan ... asp?SessionCount=11
http://support.microsoft.com/kb/257819/zh-tw#RetrieveMetadata
http://www.blueshop.com.tw/board ... 10110153028R5I.html
  1. Sub Test()
  2.     Dim cnn As Object       '  New ADODB.Connection
  3.     Dim cmd As Object       '  New ADODB.Command
  4.     Dim rs As Object        '  New ADODB.Recordset

  5.     Set cnn = CreateObject("ADODB.Connection")
  6.     Set rs = CreateObject("ADODB.Recordset")
  7.     Set cmd = CreateObject("ADODB.Command")

  8.     With cnn
  9.         If .State = 1 Then .Close    '  adStateOpen
  10.         .Provider = "Microsoft.Jet.OLEDB.4.0"
  11.        ' .ConnectionString = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=" & _
  12.                             ActiveWorkbook.Path & Application.PathSeparator & ActiveWorkbook.Name
  13.         .Open ActiveWorkbook.Path & "\¾÷²¼°O¿ý©ú²Óªí.mdb"
  14.     End With
  15. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 13# GBKEE
ÁÂÁ±z¡I
  1. .Open ActiveWorkbook.Path & "\¾÷²¼°O¿ý©ú²Óªí.mdb"
½Æ»s¥N½X
¨Æ¹ê¤W§Ú¨Ã¤£¬O­n¶}±Ò "¾÷²¼°O¿ý©ú²Óªí.mdb"¡A¦Ó¬O­n«ü¦V¤w¶}±Òªº Excel ¥»¨­¡A
¦]¬°±µ¤U¨Ó­n¬d¸ß¡B§R°£¡B·s¼W¡B©Î§ó·sªº¼Ðªº§¡¬°  Excel ¥»¨­«ü©wªº¤u§@ªí³æ
¸ê®Æ¿ý¦Ó«D Access ¸ê®Æ®wªº¸ê®Æ¿ý¡C
ÁÂÁ±z¡I

TOP

·PÁ¤j®aªº¦^ÂлPÀ°¦£!!

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD