N
Nicodemus
Hello,
while transferring text files to tables through VBA, I sometimes get the
'Record is too large' error. These text files have a standardised layout, but
it happens that some of them got corrupted before I upload them into my DB.
To prevent the VBA code to break, I use the 'On error goto err_mgr' solution:
On Error GoTo ErrMgr
....
DoCmd.TransferText acImportDelim, "myImportSpecs", "myTable", "myFile", False
....
ErrMgr:
Select Case Err
Case 3011
...
Case 3047
'unexpected file layout
...
End Select
I assumed that I could trap this 3047 error code and skip the corrupted
files, but an error message box pops up BEFORE it is detected by the 'On
error' function.
Is there another way to handle this error with VBA ?
Thx in advance for any help.
Nico
while transferring text files to tables through VBA, I sometimes get the
'Record is too large' error. These text files have a standardised layout, but
it happens that some of them got corrupted before I upload them into my DB.
To prevent the VBA code to break, I use the 'On error goto err_mgr' solution:
On Error GoTo ErrMgr
....
DoCmd.TransferText acImportDelim, "myImportSpecs", "myTable", "myFile", False
....
ErrMgr:
Select Case Err
Case 3011
...
Case 3047
'unexpected file layout
...
End Select
I assumed that I could trap this 3047 error code and skip the corrupted
files, but an error message box pops up BEFORE it is detected by the 'On
error' function.
Is there another way to handle this error with VBA ?
Thx in advance for any help.
Nico