ªð¦^¦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 : ¤H­n¦Û·R¡A¤~¯à·R´¶¤Ñ¤Uªº¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD