Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 10th, 2006, 02:25 AM
John
Guest
 
Posts: n/a
Default 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


  #2  
Old August 10th, 2006, 02:45 AM
Br@dley
Guest
 
Posts: n/a
Default 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
Default 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
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles