473,406 Members | 2,343 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,406 software developers and data experts.

Different backends

Hi

I have a single front end to which I would like to select one of two
backbends at start-up. How can I accomplish this via code? Also is it
possible to leave the "active" backend to last used at next start-up unless
user wants to change?

Thanks

Regards
Aug 10 '06 #1
2 1969
Br

John wrote:
Hi

I have a single front end to which I would like to select one of two
backbends at start-up. How can I accomplish this via code? Also is it
possible to leave the "active" backend to last used at next start-up unless
user wants to change?

Thanks

Regards
Firstly, what backend? Access, SQL, ???

There are a few ways to do it.

In one project I created a standard menu where the user could go
File/Open and select the backend they wished to open (I made up a file
extension and all my Access backend files used that).

In another I created a switchboard form which contained a drop down
which listed different backends they could attach to. This info was
stored in a table in the frontend. We used a decription and a number.
The data files (back ends) had the number in their name (eg.
XYZ0001.mdb). After the user selected a backend some code would
reattach all the table to that backend. We chose to have a frontend
table that contained a list of all the tables that were attached. We'd
loop through the names and refresh the linked table based on the new
backend. You can do the reattaching a few different ways though.

When you have SQL backends you can setup different DSNs for each and
then use a command-line parameter to pass the DSN you want to use in a
shortcut. On loading the database checks to see if the tables need
re-attaching and does so if required.

Hope that gives you some starting ideas.

regards,

Br@dley

Aug 10 '06 #2
Sorry, Access backbends both and they are the same structure wise but
different data.

Regards

"Br@dley" <br*****@comcen.com.auwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>
John wrote:
>Hi

I have a single front end to which I would like to select one of two
backbends at start-up. How can I accomplish this via code? Also is it
possible to leave the "active" backend to last used at next start-up
unless
user wants to change?

Thanks

Regards

Firstly, what backend? Access, SQL, ???

There are a few ways to do it.

In one project I created a standard menu where the user could go
File/Open and select the backend they wished to open (I made up a file
extension and all my Access backend files used that).

In another I created a switchboard form which contained a drop down
which listed different backends they could attach to. This info was
stored in a table in the frontend. We used a decription and a number.
The data files (back ends) had the number in their name (eg.
XYZ0001.mdb). After the user selected a backend some code would
reattach all the table to that backend. We chose to have a frontend
table that contained a list of all the tables that were attached. We'd
loop through the names and refresh the linked table based on the new
backend. You can do the reattaching a few different ways though.

When you have SQL backends you can setup different DSNs for each and
then use a command-line parameter to pass the DSN you want to use in a
shortcut. On loading the database checks to see if the tables need
re-attaching and does so if required.

Hope that gives you some starting ideas.

regards,

Br@dley

Aug 10 '06 #3

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

Similar topics

3
by: w | last post by:
Hello all!!! For a year and a half now, we have been developing different Access 2000 applications. Most of them are access frontend and access backends. Some of them have SQL server 2000 as a...
1
by: Neil | last post by:
Folks, I've got a problem at work, and I'm hoping that someone out there may have had something similar (although I doubt it!) or may be able to offer some advice. I'm in the process of...
16
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
1
by: Avanish Pandey | last post by:
Hello All We have 3 differen services (in 3 different server) Service A,B,C . We want to implement distributed transaction when call methods of B and C from A. Is it possible? if yes then how? ...
1
by: Jenny - | last post by:
when i start the postmaster i have multiple backends running even though i made sure to kill all the backends lingering from the previous run. is there a reason for this? while using gdb does it...
5
by: Hendrik Schober | last post by:
Hi, we just run into the problem, that "default" alignment in the project properies dialog seem to be different. We have a project that's a DLL, which is linked with a couple of LIBs. All are...
27
by: Ben Finney | last post by:
Antoon Pardon wrote: > I just downloaded your enum module for python > and played a bit with it. IMO some of the behaviour makes it less > usefull. Feedback is appreciated. I'm hoping to...
3
by: rdemyan via AccessMonster.com | last post by:
I just got Access 2003 and have been playing around with it. This whole macro security thing can be a bit annoying. Initially, I was able to link to my backends located on a second computer....
4
by: cantatahost | last post by:
Hello, Likely this has been asked before... We have a library (in DLL form) that we distribute. The interface to the library is all C, but within the library it uses C++ in many places. ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...
0
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...

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.