
Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
>I have a split database with a frontend and backend.
> Users would like to archive the current data that is in the backend and
[quoted text clipped - 6 lines]
>
> Thanks...
WOW - this is just what I was looking for.
Thanks Arvin. I'll give it a try.
Also, I too tend to agree with Jeff's suggestion and have discussed
this with the users as well, but I am not a user of this database. I'm
just trying to give them what they want.
Thanks again...
>Try running code like this:
>
[quoted text clipped - 49 lines]
>
>End Function
Jeff Boyce - 11 Jul 2007 15:07 GMT
An observation -- users can be emphatically explicit about what they want...
and exactly and precisely wrong! Part of my job is to explain the
consequences of their insistances, and to offer possible alternatives, where
germane.
If they still want to drive nails with a chainsaw after I point out
consequences and alternatives, I step back ... far!
Good luck!
Regards
Jeff Boyce
Microsoft Office/Access MVP
> WOW - this is just what I was looking for.
>
[quoted text clipped - 59 lines]
>>
>>End Function
Arvin Meyer [MVP] - 11 Jul 2007 17:44 GMT
> Also, I too tend to agree with Jeff's suggestion and have discussed
> this with the users as well, but I am not a user of this database. I'm
> just trying to give them what they want.
I also agree. Sometimes however, changing backends is necessary. The 2
instances when I needed to (and wrote the code for) were a connection to 6
different database back-ends created by another "developer" to attach to a
3rd party system. I think, by the 4th or 5th one of these he started to get
the idea that he'd designed incorrectly. He quit after the 6th one and I had
to clean up the mess. Writing that piece of code was much faster (and
therefore much cheaper as a quick fix) than redesigning and moving the data
which I eventually did. Less than an hour's work took the pressure off and
allowed me to rebuild the system correctly.
The other instance was legitimate. The database consisted of hundreds of
thousands of records which where accessed only a few times a year and about
80,000 which were accessed daily. I archived the old data to speed up the
performance and lighten the load on the network. When the users need the
data, it was only a click away.

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Well I tried this and am having a hard time getting it to work.
I put the function in a module and called the module basChangeLinks
Then created a button on a form to call the funtion
Call basChangeLinks.ChangeLinks
But Access gives me a compile error: Argument not optional.
How can I get this funtion to work?
Thanks...
> Try running code like this:
>
[quoted text clipped - 49 lines]
>
> End Function
Arvin Meyer [MVP] - 15 Jul 2007 01:31 GMT
You need to add a path for:
strNewPath
in the body of the function:
strNewPath = "C:\FolderName\FileName.mdb"

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Well I tried this and am having a hard time getting it to work.
I put the function in a module and called the module basChangeLinks
Then created a button on a form to call the funtion
Call basChangeLinks.ChangeLinks
But Access gives me a compile error: Argument not optional.
How can I get this funtion to work?
Thanks...
> Try running code like this:
>
[quoted text clipped - 49 lines]
>
> End Function
Sierras - 15 Jul 2007 05:32 GMT
OK - but if I hard code it into the body of the function, and put it
into a module, how would I call it to go back to the original
back-end. Or would I create a button and assign this function to it's
on-click command to go to one back-end and another button to go back.
And lastly, what if I users have the back end in different folders?
Thanks for your help...
>You need to add a path for:
>
[quoted text clipped - 3 lines]
>
>strNewPath = "C:\FolderName\FileName.mdb"
Arvin Meyer [MVP] - 18 Jul 2007 16:21 GMT
You'll note I wrote that function almost 9 years ago. There will need to be
some minor alterations to get it to work for you.
First, Dim strPath instead of using it as an argument of the function. Then
use a Select Case statement with a message box, or perhaps a toggle button.
If you need more than 2 choices, use an Option Group Frame or even a list
box with the Case statement.

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
> OK - but if I hard code it into the body of the function, and put it
> into a module, how would I call it to go back to the original
[quoted text clipped - 11 lines]
>>
>>strNewPath = "C:\FolderName\FileName.mdb"
JimS - 11 Sep 2007 19:00 GMT
Put the names of the various back ends into a user ("superuser") table
perhaps called "tblDatabaseNames":
dbName Descripton
---------- -----------------------
C:\blah Regular Database
C:\blah2 Last Years' Data
C:\bhah3 1986 data
Then give them a combo box choice of databases with a recordsource tied to
that table, and you use the dbName field as the calling parameter for Arvin's
function.

Signature
Jim
> You'll note I wrote that function almost 9 years ago. There will need to be
> some minor alterations to get it to work for you.
[quoted text clipped - 18 lines]
> >>
> >>strNewPath = "C:\FolderName\FileName.mdb"