-

   rss_sql_ru_access_programming

 - e-mail

 

 -

 LiveInternet.ru:
: 16.03.2006
:
:
: 4

:


Excel. .

, 30 2015 . 17:35 +
Excel. " ".
Dim Cnn As ADODB.Connection

Dim tmp_RS As ADODB.Recordset

Set Cnn = New ADODB.Connection
Cnn.Open "DRIVER={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DriverId=790;FirstRowHasNames=Yes;TypeGuessRows=5;ImportMixedTypes=Text;ReadOnly=True;" & _
 "DBQ=" & __ & ";"
Set tmp_RS = New ADODB.Recordset
strSQL = "SELECT txt_NFSCode_SU_Constr AS Obj_Code, '' AS Branch, txt_StatusHomeInSUFD_Tr_Constr as Activation_Date, '' AS Life_Length " & _
    " FROM [-$] WHERE num_Year_Tr_Constr='2015/1' OR num_Year_Tr_Constr='2015/2';"
Debug.Print strSQL
tmp_RS.Open strSQL, Cnn, adOpenStatic, adLockReadOnly, adCmdText

.

__ Excel .
: " ."

Microsoft Excel Driver num_Year_Tr_Constr . ( 2 , 2010, 07.02.1905).

, " ", , , .

, __, .

, - ?
ImportMixedTypes=Text, - , .

P/S/
Excel, 2007, win7

http://www.sql.ru/forum/1149625/import-dannyh-iz-excel-interesnyy-gluk-ili-ficha


: [1] []
 

:
: 

: ( )

:

  URL