473,789 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maintaining and updating an Access database on a remote location

I have developped an Access database with a lot of coding. The size of
the database without data is about 5 meg.
I am ready to copy the database to a client PC which already has a legal
version of Access installed.
1.I am used to work with software such has C++ which basically save the
program in many files but I notice that Access VBA save all data into a
one big file. Any way I can brake it in multiple files?
2. If I make a change in my office say on only one form, how can I save
it then import it into the client's application. I tried using the
export from the VBA editor but I am getting an error message saying that
I can't import the file when I try importing it within another Access
application.
Any help will be highly appreciated.
Thanks
ARobi

Nov 12 '05 #1
3 4289
There are a couple solutions to this issue, and it's been commented on
in the newsgroups recently, but here's a link to a Database Journal
article I wrote last month on the subject.

http://www.databasejournal.com/featu...le.php/3286111

--
Danny J. Lesandrini
dl*********@hot mail.com
http://amazecreations.com/datafast
"ARobi" <ar***@nospam.c om> wrote ...
If I make a change in my office say on only one form, how can I save
it then import it into the client's application. I tried using the
export from the VBA editor but I am getting an error message saying that
I can't import the file when I try importing it within another Access
application.

Nov 12 '05 #2
What is common done in ms-access is to split the application into two parts.

the so called front end has all code, forms, reports.

the so called back end has JUST the data.

Further, right before you deploy the ms-access application (the front end),
you generally should create a mde. A mde is essentially a run-time version
of your application. All the source code is stripped out, as it a good deal
of extra junk. It is the compiled version of your application, and your
users cannot change this.

Now, your users can use the application, and you can work on a new front
end. When your new great version comes out, all you have to do is copy this
new file over the old file (and, of course, the data is safe in that back
end mdb). This is what we call x-copy development, and we had this for 10
years. People developing in the new .net stuff are now singing the praise of
x-copy development. Hence, you don't need any special install software to
update to a new version, but simply to give the user the new mde (hence the
term x-copy development!).

Of course, now that you have two parts, you have to:

a) make sure the end users ALWAYS places the data file in the same location
as when/where you developed the application (actually, it is where you
linked to must be the same).

b) Teach your users to use the linked table manager

c) Create some code to re-link for you in case the file paths/location will
be
different on the target pc.

As a developer, you will use the linked table manager often. (for example,
you can re-link to a test database to run some dangerous code. After your
are sure your code works, you can then re-link back to the production
database (another great reason to split you database). Anyway, you should
provide some code to re-link to the back end data if you plan to distribute
the application, and have to support users.

There is some code that all of use developers grab for fee from:

http://www.mvps.org/access/tables/tbl0009.htm

You can prove some GUI for the above..but at least the work is done!
(by the way, that above site is a gold mine http://www.mvps.org

That site code for virtually every question a developer with a brain has, or
will ask in the first year or two of development If you have a question, and
need some code to solve that question, chances are, it will be found at the
above site. So, think of all the code utilities and things you had to learn
in other environments... .it is all in the above site on a silver
platter...have fun!).

For some more info on splitting, check out:

http://www.granite.ab.ca/access/splitapp.htm

http://www.microsoft.com/accessdev/a...ers/ba15_3.htm

And, for a free utility will automatically update the front end when you add
a new version to the server, c heck out:

http://www.granite.ab.ca/access/autofe.htm
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@ msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #3
Hi Danny,
What is strange is to see how Access lacks in providing already built in
codes for a such important task...
The article you are refering to is quite interesting, but it assumes
that the client and the master databases are on the same network. This
is not my case; the client database is on a stand alone workstation.
The only way I can think of is to burn the database on a CD each time I
want to upgrade the database onto the client's workstation.
I will nevertheless study your codes and see how I can adapt it to my needs.
Thanks.

Danny J. Lesandrini a écrit:
There are a couple solutions to this issue, and it's been commented on
in the newsgroups recently, but here's a link to a Database Journal
article I wrote last month on the subject.

http://www.databasejournal.com/featu...le.php/3286111


Nov 12 '05 #4

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

Similar topics

4
2842
by: Peter Larsson | last post by:
Hello everybody, I'm developing a system for a company that has production at two different locations. The production is stored in an Access database at each location, and I need to find a way to fetch data from both these databases and present them to the boss (who is at one of the locations). I've built a report generator in Excel (using VBA) that fetches data via ODBC from the database that's located in the same building. However, I...
3
5044
by: Glenn Holliday | last post by:
I want an Access application to use an .mdb file via WebDAV in a remote directory. The Access documentation is silent as far as I can find. I've received some opinions that since Office XP adds more support for WebDAV, there may be a way to do it from Access. But by experiment, I believe the only way to do it is to write at the DAO layer. I've been brainstorming IIS tricks to make the WebDAV directory look like an ordinary location to
3
3495
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no site that has this prohibition, and I have uploaded DAPs to various sites and used them from those sites. I do not understand why any site manager would prohibit DAPs. To the best of my knowledge DAPs, as HTM files, are merely hosted on the...
0
3293
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my access database and multiple connections. I'm using forms authentication with a login page. Is...
3
7904
by: Russell Read [MSFT] | last post by:
Hi all, I am using VB script in ASP to access a MS Access database. This works fine until I want to access the same db placed on a file share. The code I am using is... 'create connection object Set db = Server.CreateObject("ADODB.Connection") 'specify the database provider
7
1526
by: John Pote | last post by:
Hello, help/advice appreciated. Background: I am writing some web scripts in python to receive small amounts of data from remote sensors and store the data in a file. 50 to 100 bytes every 5 or 10 minutes. A new file for each day is anticipated. Of considerable importance is the long term availability of this data and it's gathering and storage without gaps. As the remote sensors have little on board storage it is important that a
12
5745
by: rdemyan via AccessMonster.com | last post by:
I'm having a complicated linking problem. Before I get into the particulars, I'd like to know how Access links to the back-end file at startup, AFTER I've distributed my application to the client. Here's the issue. While I'm working on my app, I'm linked to the backend on my computer. When I distribute the app, the backend file is obviously in a different location (on the client server). But the first time my app is started up at...
8
2022
by: mainframetech | last post by:
We are having a problem with Access 2002 as opposed to Access 2000. A multi-file query was set up under 2000 and tested good. Access is connected through a link to an Oracle 9.1 database. The database (mdb) was installed in remote client machines working with Access2000 and it worked fine. When the query was put on an Access2002 machine, it came up with "ORA-01017 invalid logon/password", and fails. The failing machine passes other...
0
9663
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, 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...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
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
9979
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
5415
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...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
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
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
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.