Hello,
I was wondering if it's possible to create tables with different names everytime I click on the transfer button...Because I don't want my tables to overwrite the data that is already there...
Therefore would it be possible, if everytime I click on the CmdTransfer button, and my two tables save in the other db, well they get diffrent names, for example if I have already a table named AgentTrackingModification_tb and DataTracking_tb, the the other will be AgentTrackingModification1_tb and DataTracking1_tb and so on therefre they don't overwrite themselves...
Private Sub CmdTransfer_Click()
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"L:\HoraSec\Data\DispatchBackUp.mdb", acTable, "AgentTrackingModification_tb", _
"AgentTrackingModification_tb"
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"L:\HoraSec\Data\DispatchBackUp.mdb", acTable, "DataTracking_tb", _
"DataTracking_tb"
End Sub
I was wondering if it's possible to create tables with different names everytime I click on the transfer button...Because I don't want my tables to overwrite the data that is already there...
Therefore would it be possible, if everytime I click on the CmdTransfer button, and my two tables save in the other db, well they get diffrent names, for example if I have already a table named AgentTrackingModification_tb and DataTracking_tb, the the other will be AgentTrackingModification1_tb and DataTracking1_tb and so on therefre they don't overwrite themselves...
Private Sub CmdTransfer_Click()
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"L:\HoraSec\Data\DispatchBackUp.mdb", acTable, "AgentTrackingModification_tb", _
"AgentTrackingModification_tb"
DoCmd.TransferDatabase acExport, "Microsoft Access", _
"L:\HoraSec\Data\DispatchBackUp.mdb", acTable, "DataTracking_tb", _
"DataTracking_tb"
End Sub