用户定义类型未定义的问题(新手求教)
Private Sub Command1_Click()etoa "Sheet1", "C:\book1.xls", "TestTable", "C:\Test.mdb"
End Sub
Private Function etoa(sSheetName As String, sExcelPath As String, sAccessTable As String, sAccessDBPath As String)
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase(sExcelPath, True, False, "Excel 5.0")
Call db.Execute("Select * into [;database=" & sAccessDBPath & "]." & _
sAccessTable & " FROM [" & sSheetName & "$]")
MsgBox "Table exported successfully.", vbInformation, "Yams"
End Function
不知提示我是什么没有定义呢?