乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      將查詢結果導出到Excel的另一個方法

       玉雪龍山999 2012-02-14

      將查詢結果導出到Excel的另一個方法

      發(fā)布時間:2008-04-03 10:39:46  來源:Blog  作者:Blog  點擊:251

      Option Explicit
      Dim dbado As New ADODB.Connection
      Dim cmdado As New ADODB.Command
      Dim sqlstr As String
      Dim howdo As String
      Dim filename As String

      Private Sub command1_click()
      filename = App.Path & "\" & InputBox("輸入新文件名:", "保存") & ".xls"
      howdo = Text1.Text

      dbado.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path  & "\goods.mdb;Persist Security Info=False")


      sqlstr = "SELECT * INTO [Excel 5.0;DATABASE=" & filename & "].[data] FROM [basic] where id in (" & howdo & ")"

      dbado.Execute (sqlstr), , adCmdText + adExecuteNoRecords

      dbado.close

      end sub

        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多