Connecting Tech Pros Worldwide Help | Site Map

Different backends

  #1  
Old August 10th, 2006, 02:25 AM
John
Guest
 
Posts: n/a
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


  #2  
Old August 10th, 2006, 02:45 AM
Br@dley
Guest
 
Posts: n/a

re: Different backends



John wrote:
Quote:
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

  #3  
Old August 10th, 2006, 02:55 AM
John
Guest
 
Posts: n/a

re: Different backends


Sorry, Access backbends both and they are the same structure wise but
different data.

Regards

"Br@dley" <bradley@comcen.com.auwrote in message
news:1155174916.902481.196140@i3g2000cwc.googlegro ups.com...
Quote:
>
John wrote:
Quote:
>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
>

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-Jet OLEDB backends? Riley DeWiley answers 12 November 13th, 2005 05:06 AM
one frontend different type of backends w answers 3 November 12th, 2005 11:46 PM
Split database (single front end w/ multiple backends) Therese A. Sorna answers 3 November 12th, 2005 02:41 PM
one frontend different type of backends w answers 3 July 20th, 2005 04:42 AM