A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

When to split?



 
 
Thread Tools Display Modes
  #11  
Old March 9th, 2005, 02:04 AM
Ken Snell [MVP]
external usenet poster
 
Posts: n/a
Default

You could invoke the relinking code from an AutoExec macro. You'll need to
write a function that either runs the relinking code or else calls the code
that does the relinking. AutoExec can only call a function, using the
RunCode action.

You can manually relink tables. Use Tools | Database Utilities | Linked
Table Manager. You will need to check the box at the bottom of the window
saying "Always prompt for new location". I don't like it because (1) you
must navigate to the backend file; (2) you must hope that no errors occur,
as then you will need to navigate for each individual table in the list
(this happened to me a lot when doing development work, as sometimes my
front end linked to tables in my development backend, but the actual backend
didn't contain those tables yet); (3) if you let users do this, invariably
someone will not do it correctly and then you have to come do it for them.


--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
I think this statement can or should be true of any IT implementation.
I am assuming from the lack of any other suggestions that there is no
manual
way to relink these tables once put on the production machine. I am
learning
Access after 20+ years of mainframe work so I know my mindset is a twisted
but this just seems to be a big shortcoming in the development and
distribution of databases.

I am trying to invoke your function from an autoexec macro. I know you
mentioned a startup form but is this doable or am I waiting my time.

Many thanks for your patience and understanding.

"Ken Snell [MVP]" wrote:

Once you implement such a function/code, relinking happens with no
thought
or effort!

--

Ken Snell
MS ACCESS MVP

"Allen" wrote in message
...
Peter V. reconnect function was found at some unofficial Access support
web
site. Same idea as your function.

I can't believe it is this "difficult" to "fix" something that is
suggested
(splitting a database). I split my DB in the development environment,
copied
the FE and BE to a different machine where they are in the same folder
but
the folder has a different name from the development environment.
Opened
the
FE and got error 3024, could not find file name (of the BE database) it
was
looking in the same path as the original folder on the development
machine
where the split occured. Several postings indicate the Linked Table
Manager
can be used to fix this but when I try to open the Linked Table Manager
after
getting error 3024 it is not available (grayed out on drop-down menu).

I like the idea of your approach and I am working on the function you
recommended now.

Thanks, Allen.


"Ken Snell [MVP]" wrote:

"Peter V.'s reconnect function"? Not sure what you mean by that.

Implementing a VBA code to reconnect a front end to a back end can be
done
in many ways. How I do it is this:

(1) Have a table in the front end that holds various possible
reconnection
paths (I use this so that I can keep development and working paths in
the
front end, enabling me to relink to whichever one I want). I assign a
priority number to each path.

(2) Open a form when the database first opens. In this form, run code
(I
use
the Timer event, with timer set to a few milliseconds) that gets the
desired
linking path from the table and then relinks all the linked tables. In
my
code, I cycle through all the paths in the table (using priority as
the
sorting order) until it finds a valid backend path (i.e., the code
finds
a
backend file where the path says it should be). Once found, the
relinking
is
done. (My code is a variation / enhancement of the code posted at
http://www.mvps.org/access/tables/tbl0007.htm)

(3) This first form then closes and opens a switchboard/menu form for
use.

--

Ken Snell
MS ACCESS MVP




"Allen" wrote in message
...
OK, I understand Peter V.'s reconnect function but not how to
implement
it.
Where do I put it and what invokes it?
I have split a database in a development environment. When I
install
it
into a production path and launch it the FE is looking for the BE in
the
development path, not the same directory the FE is installed in.
Can I
tell
the production FE that the BE will always be in the same directory
as
the
FE
or in a folder relative to the FE?

THanks, Allen.

"Ken Snell [MVP]" wrote:

See these articles for more info about splitting a database:

http://www.granite.ab.ca/access/splitapp/index.htm

http://www.allenbrowne.com/ser-01.html

Easier if you split? Yes, especially for down the road.
--

Ken Snell
MS ACCESS MVP



"HelenJ" wrote in message
...
Could you please give me the design reasons for splitting a
database -
ie
front end back end.

I am building a database as it is being used (not ideal but life
I
fear!) -
up till now I have taken a copy away with me and then imported
the
new
forms/
reports etc once I have developed them.

Would this be easier if I split the database?

Thanks











  #12  
Old March 9th, 2005, 03:05 AM
Allen
external usenet poster
 
Posts: n/a
Default

Thanks much Ken, but what would cause the Tools | Database Utilities | Linked
Table manager to be inactive (grayed out)?

Allen.

"Ken Snell [MVP]" wrote:

You could invoke the relinking code from an AutoExec macro. You'll need to
write a function that either runs the relinking code or else calls the code
that does the relinking. AutoExec can only call a function, using the
RunCode action.

You can manually relink tables. Use Tools | Database Utilities | Linked
Table Manager. You will need to check the box at the bottom of the window
saying "Always prompt for new location". I don't like it because (1) you
must navigate to the backend file; (2) you must hope that no errors occur,
as then you will need to navigate for each individual table in the list
(this happened to me a lot when doing development work, as sometimes my
front end linked to tables in my development backend, but the actual backend
didn't contain those tables yet); (3) if you let users do this, invariably
someone will not do it correctly and then you have to come do it for them.


--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
I think this statement can or should be true of any IT implementation.
I am assuming from the lack of any other suggestions that there is no
manual
way to relink these tables once put on the production machine. I am
learning
Access after 20+ years of mainframe work so I know my mindset is a twisted
but this just seems to be a big shortcoming in the development and
distribution of databases.

I am trying to invoke your function from an autoexec macro. I know you
mentioned a startup form but is this doable or am I waiting my time.

Many thanks for your patience and understanding.

"Ken Snell [MVP]" wrote:

Once you implement such a function/code, relinking happens with no
thought
or effort!

--

Ken Snell
MS ACCESS MVP

"Allen" wrote in message
...
Peter V. reconnect function was found at some unofficial Access support
web
site. Same idea as your function.

I can't believe it is this "difficult" to "fix" something that is
suggested
(splitting a database). I split my DB in the development environment,
copied
the FE and BE to a different machine where they are in the same folder
but
the folder has a different name from the development environment.
Opened
the
FE and got error 3024, could not find file name (of the BE database) it
was
looking in the same path as the original folder on the development
machine
where the split occured. Several postings indicate the Linked Table
Manager
can be used to fix this but when I try to open the Linked Table Manager
after
getting error 3024 it is not available (grayed out on drop-down menu).

I like the idea of your approach and I am working on the function you
recommended now.

Thanks, Allen.


"Ken Snell [MVP]" wrote:

"Peter V.'s reconnect function"? Not sure what you mean by that.

Implementing a VBA code to reconnect a front end to a back end can be
done
in many ways. How I do it is this:

(1) Have a table in the front end that holds various possible
reconnection
paths (I use this so that I can keep development and working paths in
the
front end, enabling me to relink to whichever one I want). I assign a
priority number to each path.

(2) Open a form when the database first opens. In this form, run code
(I
use
the Timer event, with timer set to a few milliseconds) that gets the
desired
linking path from the table and then relinks all the linked tables. In
my
code, I cycle through all the paths in the table (using priority as
the
sorting order) until it finds a valid backend path (i.e., the code
finds
a
backend file where the path says it should be). Once found, the
relinking
is
done. (My code is a variation / enhancement of the code posted at
http://www.mvps.org/access/tables/tbl0007.htm)

(3) This first form then closes and opens a switchboard/menu form for
use.

--

Ken Snell
MS ACCESS MVP




"Allen" wrote in message
...
OK, I understand Peter V.'s reconnect function but not how to
implement
it.
Where do I put it and what invokes it?
I have split a database in a development environment. When I
install
it
into a production path and launch it the FE is looking for the BE in
the
development path, not the same directory the FE is installed in.
Can I
tell
the production FE that the BE will always be in the same directory
as
the
FE
or in a folder relative to the FE?

THanks, Allen.

"Ken Snell [MVP]" wrote:

See these articles for more info about splitting a database:

http://www.granite.ab.ca/access/splitapp/index.htm

http://www.allenbrowne.com/ser-01.html

Easier if you split? Yes, especially for down the road.
--

Ken Snell
MS ACCESS MVP



"HelenJ" wrote in message
...
Could you please give me the design reasons for splitting a
database -
ie
front end back end.

I am building a database as it is being used (not ideal but life
I
fear!) -
up till now I have taken a copy away with me and then imported
the
new
forms/
reports etc once I have developed them.

Would this be easier if I split the database?

Thanks












  #13  
Old March 9th, 2005, 04:10 AM
Ken Snell [MVP]
external usenet poster
 
Posts: n/a
Default

Sorry, I had forgotten that you'd posted that info in your earlier note.

Try opening the front end file while holding down the Shift key. (I assume
you must have some code running when the file is opened normally.) Then try
the Linked Table Manager.

--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
Thanks much Ken, but what would cause the Tools | Database Utilities |
Linked
Table manager to be inactive (grayed out)?

Allen.

"Ken Snell [MVP]" wrote:

You could invoke the relinking code from an AutoExec macro. You'll need
to
write a function that either runs the relinking code or else calls the
code
that does the relinking. AutoExec can only call a function, using the
RunCode action.

You can manually relink tables. Use Tools | Database Utilities | Linked
Table Manager. You will need to check the box at the bottom of the window
saying "Always prompt for new location". I don't like it because (1) you
must navigate to the backend file; (2) you must hope that no errors
occur,
as then you will need to navigate for each individual table in the list
(this happened to me a lot when doing development work, as sometimes my
front end linked to tables in my development backend, but the actual
backend
didn't contain those tables yet); (3) if you let users do this,
invariably
someone will not do it correctly and then you have to come do it for
them.


--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
I think this statement can or should be true of any IT implementation.
I am assuming from the lack of any other suggestions that there is no
manual
way to relink these tables once put on the production machine. I am
learning
Access after 20+ years of mainframe work so I know my mindset is a
twisted
but this just seems to be a big shortcoming in the development and
distribution of databases.

I am trying to invoke your function from an autoexec macro. I know you
mentioned a startup form but is this doable or am I waiting my time.

Many thanks for your patience and understanding.

"Ken Snell [MVP]" wrote:

Once you implement such a function/code, relinking happens with no
thought
or effort!

--

Ken Snell
MS ACCESS MVP

"Allen" wrote in message
...
Peter V. reconnect function was found at some unofficial Access
support
web
site. Same idea as your function.

I can't believe it is this "difficult" to "fix" something that is
suggested
(splitting a database). I split my DB in the development
environment,
copied
the FE and BE to a different machine where they are in the same
folder
but
the folder has a different name from the development environment.
Opened
the
FE and got error 3024, could not find file name (of the BE database)
it
was
looking in the same path as the original folder on the development
machine
where the split occured. Several postings indicate the Linked Table
Manager
can be used to fix this but when I try to open the Linked Table
Manager
after
getting error 3024 it is not available (grayed out on drop-down
menu).

I like the idea of your approach and I am working on the function
you
recommended now.

Thanks, Allen.


"Ken Snell [MVP]" wrote:

"Peter V.'s reconnect function"? Not sure what you mean by that.

Implementing a VBA code to reconnect a front end to a back end can
be
done
in many ways. How I do it is this:

(1) Have a table in the front end that holds various possible
reconnection
paths (I use this so that I can keep development and working paths
in
the
front end, enabling me to relink to whichever one I want). I assign
a
priority number to each path.

(2) Open a form when the database first opens. In this form, run
code
(I
use
the Timer event, with timer set to a few milliseconds) that gets
the
desired
linking path from the table and then relinks all the linked tables.
In
my
code, I cycle through all the paths in the table (using priority as
the
sorting order) until it finds a valid backend path (i.e., the code
finds
a
backend file where the path says it should be). Once found, the
relinking
is
done. (My code is a variation / enhancement of the code posted at
http://www.mvps.org/access/tables/tbl0007.htm)

(3) This first form then closes and opens a switchboard/menu form
for
use.

--

Ken Snell
MS ACCESS MVP




"Allen" wrote in message
...
OK, I understand Peter V.'s reconnect function but not how to
implement
it.
Where do I put it and what invokes it?
I have split a database in a development environment. When I
install
it
into a production path and launch it the FE is looking for the BE
in
the
development path, not the same directory the FE is installed in.
Can I
tell
the production FE that the BE will always be in the same
directory
as
the
FE
or in a folder relative to the FE?

THanks, Allen.

"Ken Snell [MVP]" wrote:

See these articles for more info about splitting a database:

http://www.granite.ab.ca/access/splitapp/index.htm

http://www.allenbrowne.com/ser-01.html

Easier if you split? Yes, especially for down the road.
--

Ken Snell
MS ACCESS MVP



"HelenJ" wrote in message
...
Could you please give me the design reasons for splitting a
database -
ie
front end back end.

I am building a database as it is being used (not ideal but
life
I
fear!) -
up till now I have taken a copy away with me and then imported
the
new
forms/
reports etc once I have developed them.

Would this be easier if I split the database?

Thanks














  #14  
Old March 9th, 2005, 04:21 AM
Allen
external usenet poster
 
Posts: n/a
Default

That did it. Thanks so much Ken.

"Ken Snell [MVP]" wrote:

Sorry, I had forgotten that you'd posted that info in your earlier note.

Try opening the front end file while holding down the Shift key. (I assume
you must have some code running when the file is opened normally.) Then try
the Linked Table Manager.

--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
Thanks much Ken, but what would cause the Tools | Database Utilities |
Linked
Table manager to be inactive (grayed out)?

Allen.

"Ken Snell [MVP]" wrote:

You could invoke the relinking code from an AutoExec macro. You'll need
to
write a function that either runs the relinking code or else calls the
code
that does the relinking. AutoExec can only call a function, using the
RunCode action.

You can manually relink tables. Use Tools | Database Utilities | Linked
Table Manager. You will need to check the box at the bottom of the window
saying "Always prompt for new location". I don't like it because (1) you
must navigate to the backend file; (2) you must hope that no errors
occur,
as then you will need to navigate for each individual table in the list
(this happened to me a lot when doing development work, as sometimes my
front end linked to tables in my development backend, but the actual
backend
didn't contain those tables yet); (3) if you let users do this,
invariably
someone will not do it correctly and then you have to come do it for
them.


--

Ken Snell
MS ACCESS MVP


"Allen" wrote in message
...
I think this statement can or should be true of any IT implementation.
I am assuming from the lack of any other suggestions that there is no
manual
way to relink these tables once put on the production machine. I am
learning
Access after 20+ years of mainframe work so I know my mindset is a
twisted
but this just seems to be a big shortcoming in the development and
distribution of databases.

I am trying to invoke your function from an autoexec macro. I know you
mentioned a startup form but is this doable or am I waiting my time.

Many thanks for your patience and understanding.

"Ken Snell [MVP]" wrote:

Once you implement such a function/code, relinking happens with no
thought
or effort!

--

Ken Snell
MS ACCESS MVP

"Allen" wrote in message
...
Peter V. reconnect function was found at some unofficial Access
support
web
site. Same idea as your function.

I can't believe it is this "difficult" to "fix" something that is
suggested
(splitting a database). I split my DB in the development
environment,
copied
the FE and BE to a different machine where they are in the same
folder
but
the folder has a different name from the development environment.
Opened
the
FE and got error 3024, could not find file name (of the BE database)
it
was
looking in the same path as the original folder on the development
machine
where the split occured. Several postings indicate the Linked Table
Manager
can be used to fix this but when I try to open the Linked Table
Manager
after
getting error 3024 it is not available (grayed out on drop-down
menu).

I like the idea of your approach and I am working on the function
you
recommended now.

Thanks, Allen.


"Ken Snell [MVP]" wrote:

"Peter V.'s reconnect function"? Not sure what you mean by that.

Implementing a VBA code to reconnect a front end to a back end can
be
done
in many ways. How I do it is this:

(1) Have a table in the front end that holds various possible
reconnection
paths (I use this so that I can keep development and working paths
in
the
front end, enabling me to relink to whichever one I want). I assign
a
priority number to each path.

(2) Open a form when the database first opens. In this form, run
code
(I
use
the Timer event, with timer set to a few milliseconds) that gets
the
desired
linking path from the table and then relinks all the linked tables.
In
my
code, I cycle through all the paths in the table (using priority as
the
sorting order) until it finds a valid backend path (i.e., the code
finds
a
backend file where the path says it should be). Once found, the
relinking
is
done. (My code is a variation / enhancement of the code posted at
http://www.mvps.org/access/tables/tbl0007.htm)

(3) This first form then closes and opens a switchboard/menu form
for
use.

--

Ken Snell
MS ACCESS MVP




"Allen" wrote in message
...
OK, I understand Peter V.'s reconnect function but not how to
implement
it.
Where do I put it and what invokes it?
I have split a database in a development environment. When I
install
it
into a production path and launch it the FE is looking for the BE
in
the
development path, not the same directory the FE is installed in.
Can I
tell
the production FE that the BE will always be in the same
directory
as
the
FE
or in a folder relative to the FE?

THanks, Allen.

"Ken Snell [MVP]" wrote:

See these articles for more info about splitting a database:

http://www.granite.ab.ca/access/splitapp/index.htm

http://www.allenbrowne.com/ser-01.html

Easier if you split? Yes, especially for down the road.
--

Ken Snell
MS ACCESS MVP



"HelenJ" wrote in message
...
Could you please give me the design reasons for splitting a
database -
ie
front end back end.

I am building a database as it is being used (not ideal but
life
I
fear!) -
up till now I have taken a copy away with me and then imported
the
new
forms/
reports etc once I have developed them.

Would this be easier if I split the database?

Thanks















 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Split text cell into seperate colums without splitting up a word kevin_frisch General Discussion 1 November 5th, 2004 09:03 PM
split map xxx General Discussion 1 November 4th, 2004 12:23 AM
change database from a split to not split Joel Database Design 3 July 14th, 2004 05:49 PM
Using Split function in a query. Randal Running & Setting Up Queries 2 June 11th, 2004 04:22 PM
split worksheet patrick072040 Worksheet Functions 3 September 15th, 2003 01:00 PM


All times are GMT +1. The time now is 11:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.