Hi,
I need to export a .dat file with delimited format (using ";")
I have tried the following:
DoCmd.TransferText acExportDelim, "ED File", "Employee Data Output", "c:\testfiles\file1.dat", False, ""
But when I execute the code the folloing error is shown:
Run-time error '3027'
Cannot update. Database or object is read-only
Using the same structure "DoCmd.TransferText" but with the .txt extension in the file works perfect.
Also I have tried export the .dat file using DoCmd.OutputTo, but even if the export is done, the format is not kept.
How can I export the .dat file keeping the delimited format needed?
Thanks,
Luis
:banghead:
I need to export a .dat file with delimited format (using ";")
I have tried the following:
DoCmd.TransferText acExportDelim, "ED File", "Employee Data Output", "c:\testfiles\file1.dat", False, ""
But when I execute the code the folloing error is shown:
Run-time error '3027'
Cannot update. Database or object is read-only
Using the same structure "DoCmd.TransferText" but with the .txt extension in the file works perfect.
Also I have tried export the .dat file using DoCmd.OutputTo, but even if the export is done, the format is not kept.
How can I export the .dat file keeping the delimited format needed?
Thanks,
Luis
:banghead: