Thanks John,
Maybe you can help me with another problem related to this one. Now that I have created a folder, I need to transferText my database tables into this folder, but when I tried to do this, I got this error message:
"Runtime error "3051"
The MIcrosoft Jet database engine cannot open the file 'cases'. It is already opened exclusively by another user, or you need permission to view its data.@@@2@5003051@2.
this is my code:
If Dir(txtFileName.Text) <> "" Then
Kill (txtFileName.Text)
End If
MkDir (txtFileName.Text)
For Each tablename In db.TableDefs
If Left(tablename.Name, 4) = "CASE" Then
DoCmd.TransferText acExportDelim, "Import Specification", tablename.Name, txtFileName.Text, 0
End If
Next