473,762 Members | 8,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OMFG - can anyone help me understand how this happened?

Hi all,

Just had the wierdest thing happen overnight to one of my databases.

I have a frontend/backend set up with the front end under development
on my machine.

I was copying a load of old files of the network while I had my front
end performing some tasks overnight and I have managed to copy an old
version of the front end over the version i had open. I didn't know I
had an old version in the directory (possible that someone else saved
it to the network).

I arrive this morning to a permissions error - i don't have permissions
to do anything and the VBA has broken.

How can windows copy a database over an open database on my machine?
What the hell happened to allow it to that?

The copy was set going manually - not through the database - and it has
destroyed a lot of edits (two days worth as my backup failed the day
before)

Any good ideas?

When i got to the machine this morning, the database was still open (or
appeared so) and i could go to any module etc... but once i closed it
and reopened to see if there was a problem i could fix, then it has
completely lost everything as if i just replaced the mdb file while i
had it open.

Rats... any good ideas appreciated, but an idea of how i was able to do
this would be more useful.

Cheers,

Rob.

Jan 17 '07 #1
1 1438
Hi, Rob.
How can windows copy a database over an open database on my machine?
What the hell happened to allow it to that?
Without a file lock to prevent it, it's a piece o' cake. If you ever want
to do it with VBA code, Microsoft Access MVP Tom Wickerath's article,
"Automatica lly Update the Front End of a Split Database," will show you how
to use the Windows API to accomplish it. Please see the following Web page
for a link to his article:

http://www.Access.QBuilt.com/html/articles.html
The copy was set going manually - not through the database - and it has
destroyed a lot of edits (two days worth as my backup failed the day
before)

Any good ideas?
The cheapest way is to restore from the most recent good backup. If you
catch the file overwrite immediately, it's sometimes possible to recover
some of the original file's fragments with a data recovery tool, but it's
nearly impossible to restore these record fragments into a meaningful
structure without extreme amounts of time and patience. If this recovered
structure is even one byte off, Jet won't be able to open the database file,
so this is not the recommended way to go.
When i got to the machine this morning, the database was still open (or
appeared so) and i could go to any module etc... but once i closed it
and reopened
It only existed in RAM at that point, not on disk, but as you clicked on
objects or scrolled the scrollbar, more data was read from the file,
resulting in mismatches of information and overall confusion of the commands
given to the computer to carry out. Closing the database file and reopening
it retrieved the necessary file data from the "new" file, which wasn't what
you wanted. You would have had to use an expensive recovery tool to recover
what was left in RAM from the original file which, as you discovered, was
"confused" at the point you closed the file -- and pretty much useless.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"dkintheuk" <rm*******@fire net.uk.comwrote in message
news:11******** **************@ v45g2000cwv.goo glegroups.com.. .
Hi all,

Just had the wierdest thing happen overnight to one of my databases.

I have a frontend/backend set up with the front end under development
on my machine.

I was copying a load of old files of the network while I had my front
end performing some tasks overnight and I have managed to copy an old
version of the front end over the version i had open. I didn't know I
had an old version in the directory (possible that someone else saved
it to the network).

I arrive this morning to a permissions error - i don't have permissions
to do anything and the VBA has broken.

How can windows copy a database over an open database on my machine?
What the hell happened to allow it to that?

The copy was set going manually - not through the database - and it has
destroyed a lot of edits (two days worth as my backup failed the day
before)

Any good ideas?

When i got to the machine this morning, the database was still open (or
appeared so) and i could go to any module etc... but once i closed it
and reopened to see if there was a problem i could fix, then it has
completely lost everything as if i just replaced the mdb file while i
had it open.

Rats... any good ideas appreciated, but an idea of how i was able to do
this would be more useful.

Cheers,

Rob.

Jan 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
3221
by: Leif K-Brooks | last post by:
Has anyone ever tried implementing a simple unstructured BASIC dialect in Python? I'm getting interested in language implementation, and looking at a reasonably simple example like that could be pretty interesting.
1
2424
by: DickChristoph | last post by:
Hi We have a SQL 2000 (sp3) server with a database that I set up to have the MDF on D: and the LDF on E:. All was going along fine for several months and one day the server rebooted. The SQL log says something like "Service is shutting down due to server shutdown." When it came back up the LDF File was on D: (in the same folder as the MDF). The original LDF was gone from E:
6
1091
by: J. Nielsen | last post by:
I'm not a programmer and I don't have the time and energy to start learning right now So I need some help. Let's say I have made an HTML Table (consisting of three columns and six rows). In each cell, in the first column I have put in an image (six different ones). In the second column I have merged all six cells into one cell and there put in an image matching the background colour. In the right column I have again put in six different...
9
1784
by: MLH | last post by:
Trouble is, it doesn't happen every time. Yesterday, for example, it happened only once and not again afterward. Some days ago, a similar situation. Today, well - I tried 7 times straight to open the report and each time, A97 shuts down. The seemingly hit 'n miss nature of the error is intriguing. All I've been able to determine is that if I allow the report to be opened from within code using this line... DoCmd.OpenReport...
3
1392
by: Andrea Moro | last post by:
Some times ago I had the same troubles, but I don't remember how, I solved it. Now again. connect to www.comune.crecchio.ch.it/autocertificazione.html and go ahead selecting an item inside the listbox, the first one may be good. In the field Provincia, for example, validator shouldn't take numerics value, but actually it does. The strange thing is that if those web site run on a localhost path, it
40
2993
by: Jeff | last post by:
I have a system on a network and want to determine if anyone is currently connected to the back-end files. An interesting twist is that I have noticed that some users can be connected (have the front end open at the first form) and even though this links to the back-end files, there are no ldb files created. This is so I know when it is safe to compact the back-end files without going round to make sure everyone is logged off. User...
14
1735
by: Melanie Avids | last post by:
Hi, I'm tired of banging my head on the computer. I'm hoping someone can help? I have a very small simple page that looks perfect in Firefox, Safari, and Netscape. It's clean. The HTML and CSS both validate. In IE/Mac, however, the container div is significantly smaller, and the content overruns it. In IE/Windows, the content of the right column only starts displaying after the contents of the left column are completed. I have SCREENSHOTS...
169
9173
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide untaking to create a toolchain for it. Way back when, there used to be something called "Small C". I wonder if the creator(s) of that would want to embark on creating a nice little Small C++ compiler devoid of C++ language features that make...
0
850
by: bill.wu | last post by:
the tutor list has been strangely silent for a few days. Anyone know what has happened? why?
0
9378
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9927
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.