S
SIN
Hi,
when i run that pro and the DB close I get Error: 2075
"this operation requires an open database"
when i open the data base is work.
The code:
Private Sub Command1_Click()
Dim cn As ADODB.Connection
Dim sPath As String
Set cn = New ADODB.Connection
cn.Open "DSN=TEST1"
sPath = "D:\ImportCurrencyRate.xls"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Temp_Rates",
sPath, True
End
thanks.
when i run that pro and the DB close I get Error: 2075
"this operation requires an open database"
when i open the data base is work.
The code:
Private Sub Command1_Click()
Dim cn As ADODB.Connection
Dim sPath As String
Set cn = New ADODB.Connection
cn.Open "DSN=TEST1"
sPath = "D:\ImportCurrencyRate.xls"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Temp_Rates",
sPath, True
End
thanks.