The replication of my database was successful and it works well. I can
modify tables and forms, except for one thing : VBA ! I can’t add code
in VBA, the error message : "incorrect data format".
I worked on the database before the replication, and all was ok. After
replication, on the master-replica I managed to add some code only one
time, just before close and re-open the database. That was the last
time I was able to make change in VBA.
Do you have any idea how I can repair my database ?
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/MS-Access-In...ict216403.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=741885 3 1649
SimonDB <Us************ @dbForumz.com> wrote in
news:4_******** *************** *************** *@dbforumz.com: The replication of my database was successful and it works well. I can modify tables and forms, except for one thing : VBA ! I can’t add code in VBA, the error message : "incorrect data format". I worked on the database before the replication, and all was ok. After replication, on the master-replica I managed to add some code only one time, just before close and re-open the database. That was the last time I was able to make change in VBA. Do you have any idea how I can repair my database ?
Why would you have any code in a replicated database?
Replication is for DATA and ONLY for data.
Yes, Microsoft claims it works for forms and reports and codes,
which are, after all, stored in Jet data tables (actually, in Jet 4,
the whole thing is stored as a binary BLOB in one single record of
one of the system tables). But on a practical basis, experience has
taught us that REPLICATION DOES NOT WORK FOR FRONT END FILES.
And, of course, if you've not split your database into back end data
file and front end application (with forms, reports, queries,
modules), then you're running with the wrong setup in the first
place.
I understand how people think that replication looks like a great
way to distribute front end updates, but it's simply not, as the
result is a quick increase in corruption and eventually (and not
very long, either) complete loss of the project as a whole.
DON'T REPLICATE FRONT ENDS.
Ever.
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
"David W. Fenton" wrote: SimonDB <Us************ @dbForumz.com> wrote in news:4_******** *************** *************** *@dbforumz.com:
The replication of my database was successful and it works well. I can modify tables and forms, except for one thing : VBA ! I can’t add code in VBA, the error message : "incorrect data format". I worked on the database before the replication, and all was ok. After replication, on the master-replica I managed to add some code only one time, just before close and re-open the database. That was the last time I was able to make change in VBA. Do you have any idea how I can repair my database ?
Why would you have any code in a replicated database?
Replication is for DATA and ONLY for data.
Yes, Microsoft claims it works for forms and reports and codes, which are, after all, stored in Jet data tables (actually, in Jet 4, the whole thing is stored as a binary BLOB in one single record of one of the system tables). But on a practical basis, experience has taught us that REPLICATION DOES NOT WORK FOR FRONT END FILES.
And, of course, if you've not split your database into back end data file and front end application (with forms, reports, queries, modules), then you're running with the wrong setup in the first place.
I understand how people think that replication looks like a great way to distribute front end updates, but it's simply not, as the result is a quick increase in corruption and eventually (and not very long, either) complete loss of the project as a whole.
DON'T REPLICATE FRONT ENDS.
Ever.
-- David W. Fenton http://www.bway.net/~dfenton dfenton at bway dot net http://www.bway.net/~dfassoc
Thank you for the answer. That was not what I hoped, but now it’s
clear.
So the idea is to split the database to have the front end and the
back end and replicate only the back end. That’s the idea ?
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/MS-Access-In...ict216403.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=752372
SimonDB <Us************ @dbForumz.com> wrote in
news:4_******** *************** *************** *@dbforumz.com: So the idea is to split the database to have the front end and the back end and replicate only the back end. That's the idea ?
That's definitely the idea, and the only way that Jet replication
really works.
Since I've always split front ends/back ends since my first
multi-user app (my first app ever, in fact), it never occurred to me
to replicate anything but the data.
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jonathan |
last post by:
In the organisation where I work we currently have a public sanitised
version of our existing HR personnel database. This is very widely
used as the main source of employee info by many internal bespoke
applications.
For most of the tables, the structure of the published out table is
exactly the same as in the master personnel database. These are
obviosuly very specific to the old HR application. Currently these
tables are published...
|
by: Philip Trim |
last post by:
General Brief:
3 SQL Servers as MS SQL Server 2000 Standard Edition with Service
Pack 3
All using FTP for snapshots
All Servers are both Publishers and Distributors.
Server A has the correct data needed to be replicated to Server B
and C.
Server B and C and have blank data.
Server B and C are blank databases ready for replication.
Server A publishers to Server B and Server C
|
by: Michelle Hillard |
last post by:
Hi guys, would appreciate if you can shed some light on this.
Sorry to be a pain, can you tell me what is wrong with the following:
for /F %%i in ('dir /b /on c:\bcp\pc*.txt') do bcp Inventory..pc in
%%i -fc:\bcp\bcp.fmt -T -S CHICKYy
where CHICKYy is the server
bcp.fmt
|
by: someguy |
last post by:
Hi,
We are going to be running two SQL Server 2000's from the same
physical server, with Windows Server 2003, and I need to have certain
tables between them syncronized. Database A is a backend to a website and
database B is going to be used by a different department. Both the
databases have certain data in common but it isn't stored in the same
format. I can't just auto sync one with the other, the data (records) has
to be...
|
by: Hemant Shah |
last post by:
Folks,
I want to move the databases I have on a HP-UX system running DB2 UDB 7.2
to and AIX box running DB2 UDB 8.1. Because they are on different versions
and different OS I cannot backup on HP and restore on AIX.
Here is what I am thinking:
1) Run db2look utility on HP and get database definition.
2) Re-create database/tables on AIX
| |
by: Ray |
last post by:
Hi,
I have an Access 97 Database on the server, which gets updated from Desktops
thru a LAN. Employees who have to go to offsite locations, carry the latest
copy of the MDB. At the end-of-the day when they return to the office or
they send the copy of the MDB, the Laptop version (with their current
entries) has to be synchronized with the
MDB sitting on the server. How do I go about setting up this?
I would appreciate suggestions...
|
by: Jeff Smith |
last post by:
Hi
Is there a way to do partial replication of data?
I'm looking at having a central back end data file which contains all the
data from all users. But when each user synchronises the mobile data files
with the main data file, I only want data which is relevant to that user to
be synchronised to their data file.
Example:
|
by: RipperT |
last post by:
Don't know if this group covers web apps, but here goes. In VS 2005, I am
trying to get variables to hold thier values during postback from the
server. I convert a text box's user-keyed value to an integer and assign it
to a module level variable, then convert the variable and assign it to a
hidden text box, setting it's EnableViewState to true so it returns with the
reload. Then in the form's load event, I attempt to convert the contents...
|
by: Veeru71 |
last post by:
We have got 2 DB2-UDB databases (DB1 & DB2) running on separate
instances( Inst1 & Inst2).
DB1 has got Schema1 and DB2 has got Schema2.
We would like to setup some kind of replication to replicate both
Schema1 & Schema2 onto a 3 rd database (DB3) running on a 3 rd
instance (Inst3). This is basically to separate out Data Reads
(Reports module of the app) from the primary databases for performace
reasons. Also, Some of the Reports join...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |