473,748 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Compac tDatabase "C:\Source.mdb" , "c:\SourceTmp.m db"

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 8996
Access 2007 does not support replication.

-Ed
"ISUTri" <Gr*****@gmail. comwrote in message
news:f7******** *************** ***********@s8g 2000prg.googleg roups.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.Compac tDatabase "C:\Source.mdb" , "c:\SourceTmp.m db"

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*********@wd n.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.Compac tDatabase "C:\Source.mdb" , "c:\SourceTmp.m db"

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.Compac tDatabase "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.Compac tDatabase "C:\Source.mdb" , "c:\SourceTmp.m db"
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.Compac tDatabase "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.Com pactRepair( _
LogFile:=True, _
SourceFile:="c: \data\Test.mdb" , _
DestinationFile :="c:\data\Test Tmp.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).Ope nDatabase("C:\d ata\testReplica .mdb")
strSyncTargetDB = "\\server\Serve rReplica.mdb"

db.Synchronize strSyncTargetDB , dbRepImpExpChan ges
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.Compac tDatabase "C:\Source.mdb" , "c:\SourceTmp.m db"
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.Compac tDatabase "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.Com pactRepair( _
* * * * * * LogFile:=True, _
* * * * * * SourceFile:="c: \data\Test.mdb" , _
* * * * * * DestinationFile :="c:\data\Test Tmp.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).Ope nDatabase("C:\d ata\testReplica .mdb")
* * strSyncTargetDB = "\\server\Serve rReplica.mdb"

* * db.Synchronize strSyncTargetDB , dbRepImpExpChan ges
* * 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
2702
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 process). Lots of decompiling and lots of compacting of the original application in A2000. Then the app was opened in A2003 and compacted, decompiled and compacted. Next I imported everything into a blank A2003 database. Then this db was...
3
2209
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, run my code, and then replace the table name in the forms record source it finally appears. I found this soultion in the news group. This time, I changed the name of a textbox from txtMyBox to txtMYBOX. However, when I type in Me.txtMYBOX, the...
3
7772
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 appears. It doesn't happen every time, and using the Zoom window works fine. It appears that it only happens when I want to modify an existing expression. This continues to happen even after the database is repaired and reopened. Anyone have any...
5
4165
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. The weird thing is sometime the code breaks and sometimes it doesn't at the very same spot. Does someone know if this is a bug in A07? I'm stumped Lou
3
2207
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 server, but mainting these databases is critical to keeping the business running. 1 database in particular has been causing problems. Along the course we have had a few problems with random records corrupting (new and old) and Values within fields...
2
1459
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. Campacting the same file under 2007 does not become smaller at all. Anybody having same experiences?
5
3551
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 the Jet Replica Library, and i read on a microsoft site, that replications in jet schould still work in access 2007, if you still use the old extension .mdb
14
9445
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 Access 2000 to 2003. Ever since we upgraded to 2007, we've noticed some serious bloating. When we were on 2003, after a fresh compact, the database would be at about 20 MB. After normal use it would grow to about 25 MB and then significantly...
1
3326
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 using 2007 - crashed the database, prompting to "restart and rebuild" after the crash. Tried: - saving as 2007 (*.accdb) - compact and repair (using both 2003 and 2007) - removing all "subdatasheet" relationships
0
9552
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
9376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
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
9249
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
8245
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...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
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...
1
3315
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
2215
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.