P
Peter Adema
I am trying to export a query to a TXT fixed file.
I do this with the next VB command:
Private Sub EXPORT_Click()
On Error GoTo Err_EXPORT_Click
Dim stDocName As String
stDocName = "q_hertz1"
DoCmd.TransferText acExportFixed, "q_hertz1", stDocName,
"I:/HERTZ_NL/HERTZ.txt", -1
'DoCmd.TransferText acExportFixed, "q_hertz1", stDocName, "D:/HERTZ.txt", -1
Exit_EXPORT_Click:
Exit Sub
Err_EXPORT_Click:
MsgBox Err.Description
Resume Exit_EXPORT_Click
If I export this file to the D-drive, the old file is being replaced.
If I export to the I-drive, Access gives me the next message with only a OK
button:"Table "Hertz#txt" already exists"
Why can I not export to this drive?
I do this with the next VB command:
Private Sub EXPORT_Click()
On Error GoTo Err_EXPORT_Click
Dim stDocName As String
stDocName = "q_hertz1"
DoCmd.TransferText acExportFixed, "q_hertz1", stDocName,
"I:/HERTZ_NL/HERTZ.txt", -1
'DoCmd.TransferText acExportFixed, "q_hertz1", stDocName, "D:/HERTZ.txt", -1
Exit_EXPORT_Click:
Exit Sub
Err_EXPORT_Click:
MsgBox Err.Description
Resume Exit_EXPORT_Click
If I export this file to the D-drive, the old file is being replaced.
If I export to the I-drive, Access gives me the next message with only a OK
button:"Table "Hertz#txt" already exists"
Why can I not export to this drive?