473,626 Members | 3,237 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Back up split database

I'm surprised that when I go to File-->Backup Database within Access
only the front end is backed up.

Surely I'm missing some setting that I have to select so Access backs
up both front end and back end.

Any ideas?

Thanks

Nov 13 '05 #1
6 4025
you're surprised? Umm... and how exactly is Access supposed to figure
out you're using a split database unless you tell it? Write a batch
file?

Umm... am I supposed to be surprised that you're not psychic and didn't
figure this out/read my mind?

Nov 13 '05 #2
You need to open the back-end and back it up...

Tony D'Ambra
Web Site: aadconsulting.c om
Web Blog: accessextra.net

"bb*******@NoSp amgmail.com" <bb*******@gmai l.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
I'm surprised that when I go to File-->Backup Database within Access
only the front end is backed up.

Surely I'm missing some setting that I have to select so Access backs
up both front end and back end.

Any ideas?

Thanks

Nov 13 '05 #3
You need to open the back-end and back it up...

Tony D'Ambra
Web Site: aadconsulting.c om
Web Blog: accessextra.net

"bb*******@NoSp amgmail.com" <bb*******@gmai l.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
I'm surprised that when I go to File-->Backup Database within Access
only the front end is backed up.

Surely I'm missing some setting that I have to select so Access backs
up both front end and back end.

Any ideas?

Thanks

Nov 13 '05 #4
Question: I didn't know there was a "File-->Backup Database" command in
Access. I am using Access 2002 (XP) and have never seen that menu
option. Is it only in Access 2003? or do you require certain references
or add-ins for it to work?

Thanks!
Jim

Nov 13 '05 #5
Jim: It does exist in Access 2003 but I found out that it was not in
Access 2002.

I wish it would backup the program AND it's linked tables instead of
just the programs but I just put a button VB procedure on a form to
backup the tables. I copied some of the code from this NG. Here it
is:

Private Sub cmdBackupTables _Click()
sAppFileBruce =
"C:\SurgeonData base\Backup\Bac kupforBruce\Bru ceTableBackup" &
DatePart("m", Date) & DatePart("d", Date) & DatePart("yyyy" , Date) &
".mdb"
sAppFileOld = "C:\SurgeonData base\Backup\Old TableBackup.mdb "
sAppFileBak = "C:\SurgeonData base\Backup\Cur rentTableBackup .mdb"
sAppFileData = "C:\SurgeonData base\Program\Wo rkingTableDB_be .mdb"

Dim cnn As ADODB.Connectio n
Dim rst As New ADODB.Recordset
Set cnn = CurrentProject. Connection
rst.ActiveConne ction = cnn
rst.Open "SELECT * FROM tblCompanyFacts ", cnn, adOpenKeyset,
adLockOptimisti c, adCmdText
rst.MoveFirst

If rst.Fields("Bac kupCounter") >= 3 Then
If Len(Dir(sAppFil eBruce, vbDirectory)) <> 0 Then
Kill sAppFileBruce
End If
FileCopy sAppFileData, sAppFileBruce
rst.Fields("Bac kupCounter") = 0
End If

Kill sAppFileOld
FileCopy sAppFileBak, sAppFileOld
Kill sAppFileBak
FileCopy sAppFileData, sAppFileBak

MsgBox "Your Data Table has been backed up!", vbOKOnly

rst.Fields("Bac kupCounter") = rst.Fields("Bac kupCounter") + 1
rst.Fields("Las tBackup") = Date()
rst.UpdateBatch
tboLastbackup.R equery
rst.Close
Set rst = Nothing
Set cnn = Nothing

End Sub

Nov 13 '05 #6
is the code you are using adding records to a single backup database?
Just a thought about this: Coudn't you use the VBA copyfile procedures
using the scripting file system objects that are listed in Helen
Feddema's stuff referenced above. Youc could modify them to copy your
back end file instead of the Current Database, as she has the code.
This would give you a newly named file each time you back up. I'm not
sure the code you are using does that... (I always struggle reading
other people's code.)

I am trying to figure out a way to:

1) Backup the database, then
2) Run compact and repair with the push of a button.

Helen's code looks like it could handle the backup with a little
modification.

The tricky thing with this is that I need to disconnect all the links
before I can compact and repair. I would then want to restore the
links. It should not be too hard.

My end users have a hard time remembering to open the back end to
compact and repair...

Nov 13 '05 #7

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

Similar topics

2
2519
by: RBohannon | last post by:
I have a split database (A2K). The back end was originaly on drive J. IT changed some network stuff and eliminated the J drive. The back end is now on the F drive. When the front end is opened, it looks for the back end on the J drive and displays a message saying the filepath of the back end is not a valid path. Is there any way to reconnect the front end to the back end? The front end appears to open. An Access.LockFile is...
56
5947
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving to a 2nd office 15 minutes down the road. Only one office will be open at a time, so theoretically it'd be possible to copy the back-end manually every night from one office to another, but frankly, that's pretty annoying.
1
4315
by: Julia | last post by:
Hello there. I have a question somewhat related to this topic, and I don't know where else to go. I hope somebody can help. I've created a database in access, that I'd like to share with less than 10 users. I'd like each user to see only some of the records in the database. So for example, if I have eight users in eight countries, I want each of them to only see information for their country. I was told that the easiest way to do...
4
2389
by: nepdae | last post by:
Well, after reading and hunting all over the web, including here, I still haven't been successful in my attempts to resolve my situation. So, I thought maybe I'd just ask. Here's the situation: I have an Access 2000 database (~15 users), split into a front- and back-end. Each user has a local copy of a workgroup file and the data file is out on a server. The problem started when the IS department upgraded the server at night, touching...
1
1221
by: Mell via AccessMonster.com | last post by:
Does some have the code/INSTRUCTIONs as to where to put the code for an automatic back up every day @ 6pm? Also, is it true that when you back up your db from <Tools> menu it will not back up the BE if you have your database split? If so, what is the FASTEST way to back up a split db? -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200603/1
4
2808
by: Stephen Poley | last post by:
Whenever anyone has a question about securing an Access database he/she is usually referred (unsurprisingly) to the Security FAQ. This is however incomplete/unclear with respect to databases with a separate front-end and back-end, which is rather surprising considering that all Access databases should be split into a separate front-end and back-end. Noticing that there are quite a lot of questions on this subject in the Access newsgroups...
2
1592
by: Tammy | last post by:
Hello - I have read many threads regarding back-end security and have found them all useful. I have a couple of (what seem to be basic) questions: I have a secured front-end and back-end database. (I did use the security wizard for this.) By using the shortcuts provided, both files require a password to get in. Here is the problem: if I try to access the front-end through Windows
1
6910
by: cefrancke | last post by:
I have a Back End database (split) that is on a smokin' hot machine (dual processor, 2 gig RAM, XP Pro SP2) and I'm getting an error that says the database (back end file) is "opened exclusively" by someone else. I looked at the number of sessions and noticed that when the number of sessions were at 10, any new user launching the front end would get the "exclusive" error message. There is no security in place and no login required.
25
14839
by: zmickle | last post by:
Excuse my noobness. I am managing an access database that is shared by 4 users. Management does not want to use any technologies outside of access for this application (no SQL Server, etc). I have split the database into front end and back end databases and put the front end on each of the users' computers. All users can open the front end simultaneously, but once somebody updates data in the form, the back end locks up. What I...
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8502
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
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
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
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
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.