473,394 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Checking MS-Access Database table structure other than the opened database

2
I am creating backup and restore facility for my access based program, backup is working fine where I simply extract tables to another database.

While restoring the same I would like to check whether the database structure is same or not or someone has tempered into it or may be user has selected a wromg file. How can I achieve this. Please help me out.

Thanks

Jaidev
May 25 '07 #1
3 1680
NeoPa
32,556 Expert Mod 16PB
Without any idea of how you have implemented your Backup/Restore it's very hard to give a sensible answer.
  1. Is your backup required to backup individual parts?
  2. Can you simply copy the .MDB files backwards and forwards?
  3. Are you using a Front/Back end structure to your database(s)?
May 26 '07 #2
jaidev
2
Without any idea of how you have implemented your Backup/Restore it's very hard to give a sensible answer.
  1. Is your backup required to backup individual parts?
  2. Can you simply copy the .MDB files backwards and forwards?
  3. Are you using a Front/Back end structure to your database(s)?
Hi,

Thanks for replying, yes I have just the single .mdb file which I use for back/front end both.

In backup I am just copying tables to another new database (mdb file) using docmd.transferdatabase acExport. So the backup file contains the tables which i have exported.

In restore I am looking to import these tables using the same process of acImport (I am simply deleting relationships, deleting tables then importing tables and making relationships) using VBA. but I am afraid if someone choose wrong backup file which actually dont contain the backup tables or deleted or changed the name. My process will delete the table and importing will not be done. So there will be loss of data.

That exactly I want to check before importing whether the backup file has correct table names or not and the fields are same or not.

I hope you havethe answer.


Thanks & Regards

Jaidev
May 30 '07 #3
NeoPa
32,556 Expert Mod 16PB
To avoid the complexity try doing (A) Backup / (B) Restore as :
  1. Compact and Repair to the Backup Database name.
  2. Run a Batch (.Bat) or Command (.Cmd) file which copies the backup version over the top of this one (When you've closed the current one of course).
That way, the synchronising will be unnecessary.
May 30 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pater Maximus | last post by:
I want to use the MS Word spell checker from my Python program. I check the spelling a word at a time. It works fine for English but I can not force it to use French when I am using that language....
6
by: kwijibo28 | last post by:
Hi all, I've got a simple question regarding stl containers. Consider this code: std::vector<float> foo; foo.resize(100); How do I know if memory allocation was successful? The resize...
0
by: Lucifer | last post by:
Hi I have some code for checking for cookies, that sets a cookie on page1 and checks for it on page2. and its based on the code by MS: ...
3
by: ibn4n | last post by:
Its been a long time since I've done any c++ programming; however, I've run into a situation at work where it would be very useful to be able to write a small piece of custom code. I can do most of...
5
by: Timo | last post by:
I am having a problem with some preprocessor constant value checking: header.h: #define MY_CONSTANT 1 file.c #if MY_CONSTANTTT == 1 // <- note the typo!! // dostuff...
125
by: jacob navia | last post by:
We hear very often in this discussion group that bounds checking, or safety tests are too expensive to be used in C. Several researchers of UCSD have published an interesting paper about this...
5
by: Dean Slindee | last post by:
Anybody got any helpful suggestions on how to implement spell checking in a textbox. Perhaps solutions using Microsoft Word spell checker as a called routine? What has worked for you? Thanks,...
27
by: RobG | last post by:
I was investigating a function to determine whether daylight saving was being observed on a particular date (given the platform's regional settings) and came across a suggestion at merlyn.com to...
0
by: Jon | last post by:
I'm checking a character in a string for whitespace (spacebar or tab) or comment character (I use # for this, signifying that anything following it is a comment so should be ignored). My C# code is:...
13
by: Gabriel Genellina | last post by:
En Mon, 06 Oct 2008 11:19:58 -0300, Joe Strout <joe@strout.netescribió: Apart from the wise words that others have said, I'd add that I see no point in identifier prefixes when they merely...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.