473,396 Members | 1,933 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,396 software developers and data experts.

Access 2007 Unable to Compact Database

We are currently converting from Access 2003 to Access 2007. I have
an Access app that is going to be very difficult to convert. This App
is used by people that are out in the field and are a long distance
from where our Access Databases are. So that is why we have
Replication set up. So they have a local copy that they can replicate
to our copies when they are in a high speed area. Since they have
data on their local laptop we use VBA code to compact these
databases. This code is

DBEngine.CompactDatabase "C:\Source.mdb", "c:\SourceTmp.mdb"

The error I receive is:
Error 3251
Operation is not supported for this type of object.
Position = 2

Any help would be appreciated.

Thanks,
Jon
Jan 9 '08 #1
5 8973
Access 2007 does not support replication.

-Ed
"ISUTri" <Gr*****@gmail.comwrote in message
news:f7**********************************@s8g2000p rg.googlegroups.com...
We are currently converting from Access 2003 to Access 2007. I have
an Access app that is going to be very difficult to convert. This App
is used by people that are out in the field and are a long distance
from where our Access Databases are. So that is why we have
Replication set up. So they have a local copy that they can replicate
to our copies when they are in a high speed area. Since they have
data on their local laptop we use VBA code to compact these
databases. This code is

DBEngine.CompactDatabase "C:\Source.mdb", "c:\SourceTmp.mdb"

The error I receive is:
Error 3251
Operation is not supported for this type of object.
Position = 2

Any help would be appreciated.

Thanks,
Jon

Jan 13 '08 #2
"Ed Robichaud" <ed*********@wdn.comwrote in news:478997f2$0$26900
$2*******@news.wdn.com:
Access 2007 does not support replication.

-Ed
A DB in the ACCDB file format is not replicable. But MS claims that Access
2007 can replicate older file versions.

from http://office.microsoft.com/en-us/ac...484061033.aspx

"You cannot convert a replicated database to the Office Access 2007 file
format. However, you can use Access 2007 to create a replica of a database
that is formatted in either the Access 2000 or the Access 2002 - 2003 file
format."

from Access 2007 Help:

"Office Access 2007 employs a new file format that supports a number of
product enhancements. When you create a new database in Access 2007, the
database uses the new file format by default and is given the .accdb file
extension.

You should use the new file format whenever possible because it supports
new features, such as multivalued fields and attachments. However, the new
file format cannot be opened or linked to with earlier versions of Access,
it does not support replication, and it does not support user-level
security. If you need to use the database with earlier versions of Access,
or if you need to use replication or user-level security, you must use an
earlier version file format."

Jan 13 '08 #3
On Jan 9, 5:23 pm, ISUTri <Grab...@gmail.comwrote:
We are currently converting from Access 2003 to Access 2007. I have
an Access app that is going to be very difficult to convert. This App
is used by people that are out in the field and are a long distance
from where our Access Databases are. So that is why we have
Replication set up. So they have a local copy that they can replicate
to our copies when they are in a high speed area. Since they have
data on their local laptop we use VBA code to compact these
databases. This code is

DBEngine.CompactDatabase "C:\Source.mdb", "c:\SourceTmp.mdb"

The error I receive is:
Error 3251
Operation is not supported for this type of object.
Position = 2

Any help would be appreciated.

Thanks,
Jon
In Access 2007 this works for me. ffdbabooks.mdb is in 2002 format.

Sub temp()
DBEngine.CompactDatabase "ffdbabooks.mdb", "temp.mdb"
End Sub
Jan 13 '08 #4
On Jan 13, 1:20*pm, lyle <lyle.fairfi...@gmail.comwrote:
On Jan 9, 5:23 pm, ISUTri <Grab...@gmail.comwrote:


We are currently converting from Access 2003 to Access 2007. *I have
an Access app that is going to be very difficult to convert. *This App
is used by people that are out in the field and are a long distance
from where our Access Databases are. *So that is why we have
Replication set up. *So they have a local copy that they can replicate
to our copies when they are in a high speed area. *Since they have
data on their local laptop we use VBA code to compact these
databases. *This code is
DBEngine.CompactDatabase "C:\Source.mdb", "c:\SourceTmp.mdb"
The error I receive is:
Error 3251
Operation is not supported for this type of object.
Position = 2
Any help would be appreciated.
Thanks,
Jon

In Access 2007 this works for me. ffdbabooks.mdb is in 2002 format.

Sub temp()
DBEngine.CompactDatabase "ffdbabooks.mdb", "temp.mdb"
End Sub- Hide quoted text -

- Show quoted text -
Thanks for your help. I managed to get the compact to work Using
this:

RepairDatabase = _
Application.CompactRepair( _
LogFile:=True, _
SourceFile:="c:\data\Test.mdb", _
DestinationFile:="c:\data\TestTmp.mdb")

But my replication still isn't working. I'm using Access 2007 but the
database is still in the Access 2003 file format.

My Sync Code is as follows:

Set db = DBEngine(0).OpenDatabase("C:\data\testReplica.mdb" )
strSyncTargetDB = "\\server\ServerReplica.mdb"

db.Synchronize strSyncTargetDB, dbRepImpExpChanges
db.Close
Mar 6 '08 #5
On Mar 6, 2:33*pm, ISUTri <Grab...@gmail.comwrote:
On Jan 13, 1:20*pm, lyle <lyle.fairfi...@gmail.comwrote:


On Jan 9, 5:23 pm, ISUTri <Grab...@gmail.comwrote:
We are currently converting from Access 2003 to Access 2007. *I have
an Access app that is going to be very difficult to convert. *This App
is used by people that are out in the field and are a long distance
from where our Access Databases are. *So that is why we have
Replication set up. *So they have a local copy that they can replicate
to our copies when they are in a high speed area. *Since they have
data on their local laptop we use VBA code to compact these
databases. *This code is
DBEngine.CompactDatabase "C:\Source.mdb", "c:\SourceTmp.mdb"
The error I receive is:
Error 3251
Operation is not supported for this type of object.
Position = 2
Any help would be appreciated.
Thanks,
Jon
In Access 2007 this works for me. ffdbabooks.mdb is in 2002 format.
Sub temp()
DBEngine.CompactDatabase "ffdbabooks.mdb", "temp.mdb"
End Sub- Hide quoted text -
- Show quoted text -

Thanks for your help. *I managed to get the compact to work Using
this:

* * * * RepairDatabase = _
* * * * * * Application.CompactRepair( _
* * * * * * LogFile:=True, _
* * * * * * SourceFile:="c:\data\Test.mdb", _
* * * * * * DestinationFile:="c:\data\TestTmp.mdb")

But my replication still isn't working. *I'm using Access 2007 but the
database is still in the Access 2003 file format.

My Sync Code is as follows:

* * Set db = DBEngine(0).OpenDatabase("C:\data\testReplica.mdb" )
* * strSyncTargetDB = "\\server\ServerReplica.mdb"

* * db.Synchronize strSyncTargetDB, dbRepImpExpChanges
* * db.Close- Hide quoted text -

- Show quoted text -
BTW, the Replication works if I do it manually. However, I'm looking
for a VBA way to do this since this would be easiest on the users.
Mar 6 '08 #6

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

Similar topics

8
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
3
by: ApexData | last post by:
I know that somethimes when I make changes to the tables (like adding new fields), these changes do not always appear in the field list. If I remove the table name from the forms record source,...
3
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window...
5
by: lgeastwood | last post by:
I have a weird problem in Access 2007. I've been working in A07 for about 2 weeks when this thing began occurring. I'm working in the VB Code Editor and set break points for event procedures....
3
by: Bizmark | last post by:
Access2003, Windows XP Pro OEM user OS, Windows Sever 2000 server OS. Not-so-recently I inherited 3 Access DB's from another company merging with our own. Our own system works off of SQL...
2
by: HH | last post by:
It seems like the built-in compact function does not compact at all. A mdb file made under 2003 has been grown to over 100Mb. Compacting in access 2003 results in a file smaller then 5Mb....
5
by: Peter | last post by:
Hi, i've got an older Access program, which is written in the version 2000 and i'd like to use it with my new office 2007, so access 2007. In the program, there is an replication written with...
14
by: Brian Nelson | last post by:
Sorry for the long post, I've tried so hard to solve this one but I'm just stuck! We've had a multiuser .mdb file on a network share for years. I know it's not ideal, but it's worked well from...
1
by: Jeff | last post by:
I've built a moderately complex table relationship using Access 2007 and back-saving to 2003; my partner on the project has made edits in Access 2003. Today I was unable to open Relationship view...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
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,...

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.