¦p¦óÂ^¨ú¥XRecordsetªºTable Name
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦p¦óÂ^¨ú¥XRecordsetªºTable Name
½Ð±Ð¦U¦ì¤j¤j
¤£ª¾¹D¬O¦p¦³¿ëªk¥ÑADODB¤ºªºConnection©Î¬ORecordset¨Ó¨ú±o¥Lì¥ý³s½uªºTable Name¬°¦ó©O¡H |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 10# c_c_lai
·PÁÂc_c_laiªº¼ö¤ß¨ó§U¡A§Ú¤j¬ùª¾¹D¤F¡A¸U¤À·PÁ±z |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 10# c_c_lai
·PÁÂc_c_lai¡AªºÀ°¦£¡A:) |
|
clio
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 8# GBKEE
·PÁÂGBKEE¤j¤jªº¸Ñµª¡A§¹¥þ²Å¦X§Úªº»Ý¨D¡AÅý§Ú¸Ñ¨M¤F³oÓ°ÝÃD¡A¥t¤@Ó°ÝÃD¬O·Q½Ð±Ð¤@¤U
¤Þ¥Î¡GMicrosoft Ado Ext.2.x For DDL And Security
§Ú¸Ì±¦³¬Ý¨ì¦³¤GÓ¿ï¾Ü
Microsoft Ado Ext. 2.8 For DDL And Security
Microsoft Ado Ext. 6.0 For DDL And Security
¤£ª¾¹D³o¤GªÌªº®t²§¦b¨ºÃä©O¡H |
|
clio
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2018-2-7 11:04 ½s¿è
¦^´_ 7# clio - Option Explicit
- '¤Þ¥Î¡GMicrosoft Ado Ext.2.x For DDL And Security
- Sub Ex_Ado()
- Dim myCat As New ADOX.Catalog, myBook As String, i As Integer
- Dim strUser As String, strPWD As String, Msg As String
- myBook = "d:\excel\¸ê®Æ®w.xlsx" '«ü©wn¬d¸ßªº¤u§@粒¾ã¦WºÙ
- Msg = UCase(Split(myBook, ".")(UBound(Split(myBook, "."))))
- Select Case Msg '«Ø¥ß»P«ü©w¤u§@Á¡ªº³s±µ
- Case "XLS"
- myCat.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" _
- & "Extended Properties=Excel 8.0;" & "Data Source=" & myBook
- Case Is = "XLSM", Is = "XLSX"
- myCat.ActiveConnection = "Provider=Microsoft.ACE.OLEDB.12.0;" _
- & "Extended Properties=""Excel 12.0 xml"";" & "Data Source=" & myBook
- Case "MDB"
- myCat.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & myBook & _
- ";User ID=" & strUser & ";Jet OLEDB:Database Password=""" & strPWD & """;"
- End Select
- Cells.Clear
- Range("A1:B1") = Array("¬d¸ß¥Xªº¦WºÙ", "³B²z«áªº¦WºÙ")
- With myCat.Tables
- For i = 0 To .Count - 1
- Cells(i + 2, 1) = .Item(i).Name
- If Msg <> "MDB" Then Cells(i + 2, 2) = Mid(.Item(i).Name, 1, Len(.Item(i).Name) - 1)
- Next
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 2# GBKEE
Hi GBKEE,
·PÁ±zªº¨ó§U¡A§Ú¤]¸Õ¹L¤F¡A³oÓ¬O§_¬Oµ¹Access¨Ï¥Î¡A¦]¬°¨ºÓ¸ô®|§Ú¤£²M·¡¡A©Ò¥H¸Õ¤£¥X¨Ó¡A
§Ú¬O¥ÎExcel¸Ì±ªºVBA¥h§ìSQL©Î¬OORACLEµ¥¦hÓDatabase¡A¤@¶}©l¬O§â³s½u¨ìªº¸ê®ÆÂà¦^Recordset¡A¦A¨Ï¥ÎRecordset¨Ó°µ«áÄò§ä·j¤ñ¹ïªº¤u§@¡A
¦]¬°¦³·s¼W¤@Ó¤u¯à¡A»Ýn§@¥N¦³¸U¥Î¦r¤¸ªº¤ñ¹ï¡A©Ò¥HµLªk¨Ï¥ÎRecordset.Findªº¤èªk¨Ó§¹¦¨¡A¥u¦n»Ýn«·s³sµ²SQL©ÎORACLE¡AµM«á±qRecordsetªº¸ê°T¡A¦n¹³¤SµLªk§Ö³t±o¨ìTable Name
¤~·Q½Ð±Ð¤j¤j¡A¬O§_¦³§ó¦nªº¤èªk¡AÁÙ¬O§Ú¥u¯à±qRecordset.Sourceªº¦r¦ê¸ê°T¨ÓÂ^¨ú¶Ü¡H
¹ï¤£°_¥Ñ©ó§Ú¹ï³o¤è±¤£¬O«Ü¤F¸Ñ¡A©Î³\·|°Ý¤F«Ü©_©Çªº°ÝÃD¡AÁٽШ£½Ì¡A·PÁ±z¡C |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
¦^´_ 4# c_c_lai
·PÁÂc_clai
¸g¹L±zªº§iª¾Àɮ׸ô®|«á¡A§Úª½±µ¦bExcel¸Ì±«ü©w¸ô®|ªº¤è¦¡´N¯à§ì¨ú¤F¡A·PÁ±zªº¨ó§U¡C |
|
clio
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 3# clio
|
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
|
|
|
|
|
|