Me.frmKursupdate_StatusInfo = "Uebertrag in DB...."
Me.FX_Anzeige.ForeColor = RGB(255, 200, 100)
DoEvents
Set c = New ADODB.Connection
c.ConnectionString = "Driver={SQL Server};Server=" & Srv & ";Database=" & DB & ""
c.Open
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = c
.CommandText = "sp_DTS_xls_FX"
.CommandType = adCmdStoredProc
.CommandTimeout = 0
.Execute
End With
c.Close
Set c = Nothing
Set cmd = Nothing
Me.frmKursupdate_StatusInfo = "....erfolgreich."
Me.FX_Anzeige.ForeColor = RGB(100, 255, 100)
DoEvents
'------------------------------------------------------------------------------
'Uebertraegt tblIndex-------------------------------------
Me.frmKursupdate_StatusInfo = "Uebertrag tblIndex...."
Me.Index_Anzeige.ForeColor = RGB(255, 200, 100)
DoEvents
Set c = New ADODB.Connection
c.ConnectionString = "Driver={SQL Server};Server=" & Srv & ";Database=" & DB & ""
c.Open
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = c
.CommandText = "sp_DTS_xls_Index"
.CommandType = adCmdStoredProc
.CommandTimeout = 0
.Execute
End With
c.Close
Set c = Nothing
Set cmd = Nothing
Me.frmKursupdate_StatusInfo = "....erfolgreich."
Me.Index_Anzeige.ForeColor = RGB(100, 255, 100)
DoEvents
|