473,387 Members | 1,529 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,387 software developers and data experts.

Refreshing links. Good practices/suggestions?

If one distributes a front/backend app is there a good practice for
refreshing the links?

I was thinking that the first time the user enters the app, it could
check for any tables. If the Tables count is 0, have the user select
the backend mdb via a File/Open dialog. Then link all the tables in the
backend and write to a file the name of the backend. Then if I
distribute an update I could simply read that file and refresh the links
based on the filename contained in the file.

When you distribute a frontend, do you do so with no links and instead
use a routine to create the links?

I suppose after the relinking I could also write a text file of all the
table connections as well and use the information it it to refresh the
links in the future when broken by providing an update. Would this
method have any validity?

For some users I'm sure that not all links are coming from MDBs. You
could have a SQL server connect, a text file, an Excel file, a FoxPro
table. Connecting just to the backend may not be enough. How do you
handle the extra non-Access tables as well?
Sep 26 '07 #1
1 1725
Salad <oi*@vinegar.comwrote:
>If one distributes a front/backend app is there a good practice for
refreshing the links?

I was thinking that the first time the user enters the app, it could
check for any tables. If the Tables count is 0, have the user select
the backend mdb via a File/Open dialog.
I open a recordset based on a table.
If it pukes then I then look for the below mentioned INI file.
If the INI file exists I attempt to open a recordset based on a table in
that database as mentioned in the INI file.
If the INI file does not exist then I call the File/Open Dialog
If opening the recordset works then I figure the rest of the tables in the
database will work.
>Then link all the tables in the
backend and write to a file the name of the backend. Then if I
distribute an update I could simply read that file and refresh the links
based on the filename contained in the file.
Correct. I use an INI file for this purpose on each apps FE folder on thier PC.
>When you distribute a frontend, do you do so with no links and instead
use a routine to create the links?
No, I distribute my FE's as is with my links in there. The above logic handles the
relinking just fine.
>I suppose after the relinking I could also write a text file of all the
table connections as well and use the information it it to refresh the
links in the future when broken by providing an update. Would this
method have any validity?
No, you just need to path and file name of a valid BE MDB in the file stored in the
local system.
>For some users I'm sure that not all links are coming from MDBs. You
could have a SQL server connect, a text file, an Excel file, a FoxPro
table. Connecting just to the backend may not be enough. How do you
handle the extra non-Access tables as well?
Same but I might have different entries in the INI file if I had multiple files for
different purposes. Although the one time I was upsizing an app I just placed the
server name, instance name and database name in the INI file.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 27 '07 #2

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

Similar topics

0
by: Emile van Sebille | last post by:
QOTW (advanced interfaces track): "I'm firmly in favour of any language that can DWIMNWIS." -- Tim Delaney QOTW (MS roadkill track): "Underestimate MS at your own risk. It is one thing to not...
0
by: Cameron Laird | last post by:
QOTW: "uch of the sample Python code in the world represents relatively good programming practices." -- Tim Roberts...
0
by: Laurie Paulin | last post by:
Would anybody be able to point me in the direction of any links on rich GUI best practices please? I would have thought that there has been enough time for this type of resource to develop but...
60
by: A.Translator | last post by:
I have been struggling with a page that is based on a table structure (because that is all I am feeling comfortable with at the moment) styled with css. One of the problems I run in to is Opera...
3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
31
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
5
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...
13
by: honey99 | last post by:
Hi! I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window...
0
by: Gabriel Genellina | last post by:
QOTW: "If you really want to learn hard-core Python, probably your best bet is: * read everything Tim Peters has ever written in comp.lang.python (this will take a few months), start with "import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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,...
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...

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.