S
Song Su
To simplify my code, I plan to move 'DoCmd...." into another sub called
CleanUp.
memory viarible strPath is not working in CleanUp sub.
How do I fix it?
Thanks.
Private Sub cmdFall_Click()
Dim strPath As String
strPath = "s:\data\studFall.txt"
DoCmd.TransferText acImportFixed, "IDTransferSpec", "IDTransfer",
strPath, False, ""
Call CleanUp
End Sub
CleanUp.
memory viarible strPath is not working in CleanUp sub.
How do I fix it?
Thanks.
Private Sub cmdFall_Click()
Dim strPath As String
strPath = "s:\data\studFall.txt"
DoCmd.TransferText acImportFixed, "IDTransferSpec", "IDTransfer",
strPath, False, ""
Call CleanUp
End Sub