Run time error 462 Access VBA using Excel
问题 I occasionally get a run time error when trying to open/manipulate Excel files using Access VBA. The error is "Run-Time error '462': The remote server machine does not exist or is unavailable What is frustrating is that the error occurs only for certain files and not others and in different instances. Here is my code, the error occurs at the workbooks.open(sPath) line: DoCmd.SetWarnings False Dim oExcel As New Excel.Application Dim oWB As Workbook Dim oWS As Worksheet Set oExcel = Excel