Z
Zachariah
Part of a Windows Service app I created in .NET 2003 has
the following code:
Dim stOutPath As String
Dim stTableName As String
Const strDBPath As String = "C:\test_be.mdb"
acApp = New Access.Application
With acApp
stTableName = "tblTest"
stOutPath = "C:\IN\test.txt"
.OpenCurrentDatabase(strDBPath)
.DoCmd.TransferText(stTableName, stOutPath)
.CloseCurrentDatabase()
End With
acApp.Quit()
acApp = Nothing
This code creates an Access application object, does an
import from a text file (stOutPath) and generates an
Access table (stTableName). This service functions on my
development machine which is running Access 2002. However
it fails to run on my production machine which is running
Access 2000. Does anyone know why this would be? I'm
certain file to be imported exists and that the Access
Application object is being created but then
the .OpenCurrentDatabase(strDBPath) fails. I just want to
rule out anything on the .NET side
the following code:
Dim stOutPath As String
Dim stTableName As String
Const strDBPath As String = "C:\test_be.mdb"
acApp = New Access.Application
With acApp
stTableName = "tblTest"
stOutPath = "C:\IN\test.txt"
.OpenCurrentDatabase(strDBPath)
.DoCmd.TransferText(stTableName, stOutPath)
.CloseCurrentDatabase()
End With
acApp.Quit()
acApp = Nothing
This code creates an Access application object, does an
import from a text file (stOutPath) and generates an
Access table (stTableName). This service functions on my
development machine which is running Access 2002. However
it fails to run on my production machine which is running
Access 2000. Does anyone know why this would be? I'm
certain file to be imported exists and that the Access
Application object is being created but then
the .OpenCurrentDatabase(strDBPath) fails. I just want to
rule out anything on the .NET side