A
A. J.
I had a 2003 version of the Access database which was working well; now I
converted to the 2007 version, it did not read the files as before. Here is
the code section:
Option Compare Database
Option Explicit
Dim SQL As String
Dim FilesTable As New ADODB.Recordset
Public Sub WriteFile(i As Integer, FileName1, CurDir1, RelPath1, a1,
WellID1, PNum1)
FilesTable.AddNew
FilesTable!PNum =PNum1
FilesTable!FileName = FileName1
FilesTable!RelPath = RelPath1
FilesTable!Level = i
….
End Sub
Now when it reads FilesTable.AddNew, it stops reading the following lines of
code and goes back to the calling function to the error message place.
ErrorPath:
If Err.Number = 52 Then
GoTo ExitPath
Could someone give a help? Thanks!
converted to the 2007 version, it did not read the files as before. Here is
the code section:
Option Compare Database
Option Explicit
Dim SQL As String
Dim FilesTable As New ADODB.Recordset
Public Sub WriteFile(i As Integer, FileName1, CurDir1, RelPath1, a1,
WellID1, PNum1)
FilesTable.AddNew
FilesTable!PNum =PNum1
FilesTable!FileName = FileName1
FilesTable!RelPath = RelPath1
FilesTable!Level = i
….
End Sub
Now when it reads FilesTable.AddNew, it stops reading the following lines of
code and goes back to the calling function to the error message place.
ErrorPath:
If Err.Number = 52 Then
GoTo ExitPath
Could someone give a help? Thanks!