473,396 Members | 1,936 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.

Jet Replication in Access 2007

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

so i tried it, but there comes the error -2147467259 - "The Microsoft
Office Access - Databasemodul was not initialized."

Here is the connection-string, i use to connect to the replicable
datafile:
"Provider=Microsoft.ACE.OLEDB.12.0;User ID=Entwickler;
Password=qwerASDF12;Data Source=c:\Programme\BAP
\BAP_Prog_V13_FINAL.mdb;Mode=Share Deny None;Extended
Properties="";Jet OLEDB:System database=c:\Programme\BAP\BAP.mdw;Jet
OLEDB:Registry Path=Software\Microsoft\Office\12.0\Access\Access
Connectivity Engine;Jet OLEDB:Database Password="";Jet OLEDB:Engine
Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database
Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt
Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False;Jet
OLEDB:Support Complex Data=True;"

and here is the code, i use to replicate the data:

Dim repMaster As New JRO.Replica

repMaster.ActiveConnection = GetJetConnection(GetINIData("Pfade",
"Daten"))
repMaster.CreateReplica strPfad, "Repliziert Daten von BAP"

Does anyone has in idea?
The Office 2007 is installed complete. I also tried to change the Jet
OLEDB:Engine Type to version 6, but this also didn't help anything.

Thank you very much.
Jun 27 '08 #1
5 3526
Peter <pe*********@gmail.comwrote in
news:c9**********************************@x41g2000 hsb.googlegroups.co
m:
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

so i tried it, but there comes the error -2147467259 - "The
Microsoft Office Access - Databasemodul was not initialized."

Here is the connection-string, i use to connect to the replicable
datafile:
"Provider=Microsoft.ACE.OLEDB.12.0;User ID=Entwickler;
Password=qwerASDF12;Data Source=c:\Programme\BAP
\BAP_Prog_V13_FINAL.mdb;Mode=Share Deny None;Extended
Properties="";Jet OLEDB:System
database=c:\Programme\BAP\BAP.mdw;Jet OLEDB:Registry
Path=Software\Microsoft\Office\12.0\Access\Access Connectivity
Engine;Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet
OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database
Password="";Jet OLEDB:Create System Database=False;Jet
OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet
OLEDB:SFP=False;Jet OLEDB:Support Complex Data=True;"
This is an OLEDB connect string, and makes no sense, since you can't
have linked tables with ADO.
and here is the code, i use to replicate the data:

Dim repMaster As New JRO.Replica

repMaster.ActiveConnection = GetJetConnection(GetINIData("Pfade",
"Daten"))
repMaster.CreateReplica strPfad, "Repliziert Daten von BAP"

Does anyone has in idea?
The Office 2007 is installed complete. I also tried to change the
Jet OLEDB:Engine Type to version 6, but this also didn't help
anything.
Why are you using OLEDB?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 27 '08 #2
Why are you using OLEDB?

I just take the connection string from the currentproject and add a
password and change the Data Source property to connect to the other
database, because i tried to connect to it, as it is shown in the
msdn, but it didn't work, so i tried it this way and with access 2000
and 2003 it worked

so you mean the connection string is wrong, and i have to change it?
Jun 27 '08 #3
Peter <pe*********@gmail.comwrote in
news:9e**********************************@d1g2000h sg.googlegroups.com
:
>Why are you using OLEDB?

I just take the connection string from the currentproject and add
a password and change the Data Source property to connect to the
other database, because i tried to connect to it, as it is shown
in the msdn, but it didn't work, so i tried it this way and with
access 2000 and 2003 it worked

so you mean the connection string is wrong, and i have to change
it?
I don't know how you manage to get an OLEDB connect string for your
current connection. Then again, I've never used any form of
ADO/OLEDB, so maybe I'm confused. I'd think your front end would
have linked tables (which are, by definition, DAO). Of course,
you're using JRO, which works counterintuitively, because it's one
of the ugly stepchildren of the ADO debacle.

I don't have any advice to offer, except to dump JRO, which never
made the slightest sense to me in the first place.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 27 '08 #4
I just take the connection string from the currentproject and add
a password and change the Data Source property to connect to the
other database, because i tried to connect to it, as it is shown
in the msdn, but it didn't work, so i tried it this way and with
access 2000 and 2003 it worked
so you mean the connection string is wrong, and i have to change
it?

I don't know how you manage to get an OLEDB connect string for your
current connection. Then again, I've never used any form of
ADO/OLEDB, so maybe I'm confused. I'd think your front end would
have linked tables (which are, by definition, DAO). Of course,
you're using JRO, which works counterintuitively, because it's one
of the ugly stepchildren of the ADO debacle.
i just take CurrentProject.Connection
and yes there are linked tables in the forntend
and firstly i programmed the synchronization in DAO, but this isn't
supported by Access 2007 anymore, so now i had to recode it using JET
whichs works in the older Access versions as the DAO but doesn't work
in Access 2007
Jun 27 '08 #5
Peter <pe*********@gmail.comwrote in
news:26**********************************@a1g2000h sb.googlegroups.com
:
I just take the connection string from the currentproject and
add a password and change the Data Source property to connect
to the other database, because i tried to connect to it, as it
is shown in the msdn, but it didn't work, so i tried it this
way and with access 2000 and 2003 it worked
so you mean the connection string is wrong, and i have to
change it?

I don't know how you manage to get an OLEDB connect string for
your current connection. Then again, I've never used any form of
ADO/OLEDB, so maybe I'm confused. I'd think your front end would
have linked tables (which are, by definition, DAO). Of course,
you're using JRO, which works counterintuitively, because it's
one of the ugly stepchildren of the ADO debacle.

i just take CurrentProject.Connection
and yes there are linked tables in the forntend
and firstly i programmed the synchronization in DAO, but this
isn't supported by Access 2007 anymore, so now i had to recode it
using JET whichs works in the older Access versions as the DAO but
doesn't work in Access 2007
Eh? Yes, of course, DAO is still supported in A2K7. However, there
was a bug in the initial shipping release of A2K7 that caused DAO
synchs to fail, but that was fixed (first by a hotfix, and then in
the first service pack).

The idea that JRO would be preferable in A2K7 is ridiculous, as MS
is deprecating ADO (and its ugly stepchildren) for work with Jet
data. DAO is the way to go -- it's the live, in-development data
interface for Jet data. ADO/JRO on the other hand, are completely
dead.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 27 '08 #6

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

Similar topics

4
by: Andi Plotsky | last post by:
I need to synchronize 3 databases (1 Master and 2 replicas). I thought I'd give the Replica feature in Access2000 a whirl. I'm not sure I'm THAT impressed.....but maybe I'm just doing something...
6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
3
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. ...
56
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...
9
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4...
1
by: andersonm82 | last post by:
Rightyho, I am in need to set up an indirectly (offline laptop-usable) synchronising database system without access to run server side processes. It looks to already work, but for testing purposes...
0
by: phil | last post by:
Problem Dropping Members from a Replication Set Originally posted: 2007 May 21 04:36 AM 9200Phil Post new reply Hi I'm trying to drop a number of tables from a replication set. Environment:
5
by: Fenix Bird | last post by:
Hello... I'm new to MS SQL, so please be nice... LOLOL I decided to go from Access 2003 with the MS SQL Express Edition (I really don't need all the features of the full version, if so, I can...
9
by: Al Dykes | last post by:
I have inherited an application written in Access that is a replicated copy from the PC that was used to develop the app. When we had both PCs, we synced the DB nightly. The master PC is gone....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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.