Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

Transfer from one table to another one in the same database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeanhurtado@gmail.com - 22 Mar 2007 16:55 GMT
Hi, my name is Jean C. and well trying to finish a project. I have the
following problem, I have two tables "Costtable" and
"BackupCosttable". I want a command button to transfer all records
from the "Costtable" table to BackupCosttable" table. I want to make
sure the transfer was succeed and also a button that can transfer the
records from BackupCosttable" to "Costtable"  in case of a transfer
corruption in the "Costtable". Can you help me?Thanks for your
cooperation. Hope you have a nice day.
John W. Vinson - 22 Mar 2007 23:34 GMT
>Hi, my name is Jean C. and well trying to finish a project. I have the
>following problem, I have two tables "Costtable" and
[quoted text clipped - 4 lines]
>corruption in the "Costtable". Can you help me?Thanks for your
>cooperation. Hope you have a nice day.

Well... this is wasted effort, most likely.

If your database gets corrupted, you're very likely to lose BOTH tables.

If you want to back up your data, it's very much preferable to (quite outside
of Access) make a backup copy of your entire MDB file.

If you want to do this anyway, for some reason that I'm not seeing, an Append
query will do the job - you'll need two queries, one for each direction.
However, if a table becomes corrupted, you won't be able to append to it;
you'll need to delete it, compact and repair the database, and then recreate
it before you can append.

            John W. Vinson [MVP]
jeanhurtado@gmail.com - 23 Mar 2007 13:10 GMT
On Mar 22, 6:34 pm, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:

> >Hi, my name is Jean C. and well trying to finish a project. I have the
> >following problem, I have two tables "Costtable" and
[quoted text clipped - 19 lines]
>
>              John W. Vinson [MVP]

Thanks Mr. John for your help. The pourpose of this backup is because
the "Costtable" is a table that it will receive a spreedsheet transfer
(update cost pourposes) and if the excel file gets corrupt then
the"BackupCostTable" will revert it contents to the "Costtable" again.
Hope you understand. My pourposes is to avoid a lost of data if the
transfer fails.
John W. Vinson - 23 Mar 2007 14:59 GMT
>Thanks Mr. John for your help. The pourpose of this backup is because
>the "Costtable" is a table that it will receive a spreedsheet transfer
>(update cost pourposes) and if the excel file gets corrupt then
>the"BackupCostTable" will revert it contents to the "Costtable" again.
>Hope you understand. My pourposes is to avoid a lost of data if the
>transfer fails.

I'd still recommend backing up the entire MDB. A transfer gone bad (say a
network dropout during the process) is just as likely to corrupt the entire
.mdb as it is to selectively damage the target table.

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.