![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
Access 2007 does not support replication. -Ed |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
On Jan 9, 5:23 pm, ISUTri <Grab... (AT) gmail (DOT) com> wrote: 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 - |
#6
| |||
| |||
|
|
On Jan 13, 1:20*pm, lyle <lyle.fairfi... (AT) gmail (DOT) com> wrote: On Jan 9, 5:23 pm, ISUTri <Grab... (AT) gmail (DOT) com> wrote: 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 - |
![]() |
| Thread Tools | |
| Display Modes | |
| |