473,804 Members | 3,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refreshing Referenced Module

HI

I want to reference code in an external Access Database, and refresh
that database (by downloading from network location). Do I need to
bootstrap? Or is it possible (during autorun) overwriting the
referenced database?

Currently the Customer uses one shared referenced Access Database
(which is about 80 MB) which is impossible to update because its
referenced to a network path from around 25 to 30 users. I want to
break out the shared code into smaller units and copy them down to the
local hard drives. I also want the Referencing Database to check the
version number of the referenced module on start up and force to
overwrite the mdb with the newer versions from the network.

I have already done something similar in VB where I wrote a bootstrap
app that downloaded the new version and then restarted the App, (kind
of like ping pong) question is do I need to employ the same technique
with Access or is it possible (during startup) to replace the
referenced module?

thanks in advance
Axel

May 30 '06 #1
3 1399
You may need something like:

Dim ref As Reference
Set ref = Application.Ref erences!YourRef erenceLib
Application.Ref erences.Remove ref
'--->> ChangeFileHere or do whatever ...
AddRefAgain:
Application.Ref erences.AddFrom File "FullPathToYour ReferenceLibHer e"
SysCmd 504, 16483 ' - Save And Compile
Debug.Print "CompileVal ue: " & Application.IsC ompiled

Arno R
"Axel" <re***********@ hotmail.com> schreef in bericht news:11******** *************@y 43g2000cwc.goog legroups.com...
HI

I want to reference code in an external Access Database, and refresh
that database (by downloading from network location). Do I need to
bootstrap? Or is it possible (during autorun) overwriting the
referenced database?

Currently the Customer uses one shared referenced Access Database
(which is about 80 MB) which is impossible to update because its
referenced to a network path from around 25 to 30 users. I want to
break out the shared code into smaller units and copy them down to the
local hard drives. I also want the Referencing Database to check the
version number of the referenced module on start up and force to
overwrite the mdb with the newer versions from the network.

I have already done something similar in VB where I wrote a bootstrap
app that downloaded the new version and then restarted the App, (kind
of like ping pong) question is do I need to employ the same technique
with Access or is it possible (during startup) to replace the
referenced module?

thanks in advance
Axel

May 30 '06 #2
Thereis no technique you can use to replace an in-use Access mdb.

If your people will be using them locally, you can copy the new bits down
before you open any of them. I still do this with VB (well, VB.NET now) as
a front-end to my access app. The little version checker/copier is so small
that the overhead is negligible, considering the version stay up to date
constantly, and it's capable of checking and copying only exactly what's
needed.

Not to mention that using a vb or vb.net app ahead of the access pieces
opens up all kinds of other possibilities about how you can respond to
command lines.
May 31 '06 #3
the front end is probably the best way, but hard to enforce as the app
runs in three plants. (3 Bosses and close to 50 users to convince) -
they are not used to tight version control although the original author
(he is one of the bosses) constantly potters with the frontend.

They might simply refuse to run it. So better if I could invoke this
app in Access.autorun and close down / restart (which is effecitvely
like bootstrapping). Of course I could take the lazy route and just
deny access + point to a batch file: "Your app is out of date, please
run RefreshDB!" - admittedly the cheapest way out.

thanks
Axel

wa*****@sbcglob al.net wrote:
Thereis no technique you can use to replace an in-use Access mdb.

If your people will be using them locally, you can copy the new bits down
before you open any of them. I still do this with VB (well, VB.NET now) as
a front-end to my access app. The little version checker/copier is so small
that the overhead is negligible, considering the version stay up to date
constantly, and it's capable of checking and copying only exactly what's
needed.

Not to mention that using a vb or vb.net app ahead of the access pieces
opens up all kinds of other possibilities about how you can respond to
command lines.


May 31 '06 #4

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

Similar topics

0
2683
by: Mark Payne | last post by:
Gudday, I have an Access 2000 database which I am using as a phone directory of residents in the hostel where I work. The front end for this directory is a form with a text box (the search name etc) and two combo boxes that let you choose options relating to the search name. These three controls are referenced by a query, the results of which are the control source for a subform on the main form. so far, so good.
5
3307
by: Scott Tilton | last post by:
I am having a terrible time getting this to work. I am hoping someone out there can help me with very specific code examples. I am trying to get the linked tables in my Access 97 database to be updated whenever the database opens. I need to have them updated based on an INI file that resides in the same directory as the current database. I do not need or want the ability to open a dialog box to pick the location. I simply want it to...
6
7588
by: Lewis Veale | last post by:
I have an Access 2000 front-end pointing at a SQL Server backend, with around 80 linked tables and views. I frequently need to point the front-end at different versions of the back-end, and achieve this by relinking the tables and views to use a different DSN. I use the Linked Table Manager > Select All > and tick the 'always prompt for a new location' box, then click OK. It correctly pops up the 'select data source' box, from which I...
14
5430
by: Jamey Shuemaker | last post by:
Greetings all, I've been reading for the last couple hours posts on this site and various MS sites about reference libraries and class modules. System: Windows 2K running an A2K db with various standard modules and a handful of custom class modules. Stripped out the standard and class modules and put them in a stand-alone mdb which was then converted to an mde and referenced from another mdb (later, it will be an mde, but i'm only in...
2
5337
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
1
1187
by: noagbodjivictor | last post by:
I have the python interperter opened while editing a module. The problem is that when I make changes, the module is not refreshed whenever I import it again. I have to re-launch the interpreter, is there a way to shortcut this?
2
1965
by: stevemtno | last post by:
I've got a problem with a web page I'm working on. I have 4 modules - one of them has 2 tabs, two of them have 4 tabs. When the user clicks on the tabs, the content below them changes. However, when the user clicks on the tab (any tab), the browser goes back to the top of the page (I'm assuming it's refreshing, I'm not sure). I'm attaching the JS code below, along with the 2-tab version of the module and its accompanying CSS. Any help will be...
5
10487
by: kp | last post by:
Hi, I am compiling on an AIX 5.1 box and my test machine is AIX 5.3. I run the foll. steps for compiling my test binary "test" /usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/ usr/lpp/application/include /usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/ application/lib -brtl -s test.o -lapplicationapi -liconv
1
1823
by: sweeneysmsm | last post by:
Working in Access 2003, Windows XP Pro - (client not faithful to updates:(. I have succeeded in splitting a database. (I am actually working on a "test run copy" to insure that I am safe. My back-end contains my tables and my front-end forms etc have "linked" icons preceding them. Regarding the relinking code: 1. In my Access 2003 Inside-Out book it gives Startup Code to Verify and Correct Linked Table Connections (on p. 1206)....
0
9571
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
10561
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...
1
10302
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
9132
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
7608
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
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.