G
Guest
I have an Access97 runtime application that I have distributed. Some users cannot get past a TransferText command to copy table data to a floppy as txt files. It doesn't seem to be consistent, so I am thinking that it may have something to do with their specific setup (???)
My Code is a follows:
Private Sub CopyAllToDisk_Click()
On Error GoTo Err_CopyAllToDisk_Click
Dim AnswerMsg As Integer
AnswerMsg = MsgBox("This will copy ALL TOURNAMENT DATA to the disk in Drive A as 'backup' text files. Make sure you are not over-writing good data with old data!", 305, "Tournament Plus")
If AnswerMsg = 1 Then
DoCmd.TransferText acExportDelim, , "tblAddedPts", "A:\tblAddedPts.txt", True
DoCmd.TransferText acExportDelim, , "tblCurrentFile", "A:\tblCurrentFile.txt", True
DoCmd.TransferText acExportDelim, , "tblDivisionNames", "A:\tblDivisionNames.txt", True
DoCmd.TransferText acExportDelim, , "tblFileNames", "A:\tblFileNames.txt", True
DoCmd.TransferText acExportDelim, , "tblOptions", "A:\tblOptions.txt", True
DoCmd.TransferText acExportDelim, , "tblPairings", "A:\tblPairnings.txt", True
DoCmd.TransferText acExportDelim, , "tblPairings2", "A:\tblPairnings2.txt", True
DoCmd.TransferText acExportDelim, , "tblPenaltyPts", "A:\tblPenaltyPts.txt", True
DoCmd.TransferText acExportDelim, , "tblRegistration", "A:\tblRegistration.txt", True
DoCmd.TransferText acExportDelim, , "tblTeamsExpected", "A:\tblTeamsExpected.txt", True
MsgBox "I'm done copying files to disk now. Make sure you label the disk.", , "Tournament Plus"
Else
Exit Sub
End If
Exit_CopyAllToDisk_Click:
DoCmd.SetWarnings True
Exit Sub
Err_CopyAllToDisk_Click:
DoCmd.SetWarnings True
MsgBox "Tournament Plus cannot write a file to Drive A. Make sure there is a formatted disk in Drive A.", , "Tournament Plus"
Resume Exit_CopyAllToDisk_Click
End Sub
My Code is a follows:
Private Sub CopyAllToDisk_Click()
On Error GoTo Err_CopyAllToDisk_Click
Dim AnswerMsg As Integer
AnswerMsg = MsgBox("This will copy ALL TOURNAMENT DATA to the disk in Drive A as 'backup' text files. Make sure you are not over-writing good data with old data!", 305, "Tournament Plus")
If AnswerMsg = 1 Then
DoCmd.TransferText acExportDelim, , "tblAddedPts", "A:\tblAddedPts.txt", True
DoCmd.TransferText acExportDelim, , "tblCurrentFile", "A:\tblCurrentFile.txt", True
DoCmd.TransferText acExportDelim, , "tblDivisionNames", "A:\tblDivisionNames.txt", True
DoCmd.TransferText acExportDelim, , "tblFileNames", "A:\tblFileNames.txt", True
DoCmd.TransferText acExportDelim, , "tblOptions", "A:\tblOptions.txt", True
DoCmd.TransferText acExportDelim, , "tblPairings", "A:\tblPairnings.txt", True
DoCmd.TransferText acExportDelim, , "tblPairings2", "A:\tblPairnings2.txt", True
DoCmd.TransferText acExportDelim, , "tblPenaltyPts", "A:\tblPenaltyPts.txt", True
DoCmd.TransferText acExportDelim, , "tblRegistration", "A:\tblRegistration.txt", True
DoCmd.TransferText acExportDelim, , "tblTeamsExpected", "A:\tblTeamsExpected.txt", True
MsgBox "I'm done copying files to disk now. Make sure you label the disk.", , "Tournament Plus"
Else
Exit Sub
End If
Exit_CopyAllToDisk_Click:
DoCmd.SetWarnings True
Exit Sub
Err_CopyAllToDisk_Click:
DoCmd.SetWarnings True
MsgBox "Tournament Plus cannot write a file to Drive A. Make sure there is a formatted disk in Drive A.", , "Tournament Plus"
Resume Exit_CopyAllToDisk_Click
End Sub