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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Objects from one database in another database



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2007, 01:08 AM posted to microsoft.public.access
Josetta
external usenet poster
 
Posts: 6
Default Using Objects from one database in another database

I've looked around here to see if this can be done, but haven't found
the answer. Here is what I want to do...

I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.

To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.

Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.

Any ideas?

  #2  
Old April 26th, 2007, 01:13 AM posted to microsoft.public.access
Aaron Kempf
external usenet poster
 
Posts: 245
Default Using Objects from one database in another database

if you used Access Data Projects, then it would be quite easy to share data
in between databases

it would take ZERO code and ZERO effort

you just would need to add database.schema.object


schema is typcially 'dbo' for SQL 2000.. in SQL 2005; it'll break more into
a ROLE type.. like Accounting, HR, Recruiting, Manufacturing, etc


but seriously
make your life easier-- move to Access Data Projects





"Josetta" wrote in message
oups.com...
I've looked around here to see if this can be done, but haven't found
the answer. Here is what I want to do...

I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.

To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.

Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.

Any ideas?



  #3  
Old April 26th, 2007, 05:08 PM posted to microsoft.public.access
Josetta
external usenet poster
 
Posts: 6
Default Using Objects from one database in another database

Sorry, but this is not an option. I'm not even sure what Access Data
Projects is, but the database is far too advanced to make any sort of
switch.


On Apr 25, 8:13 pm, "Aaron Kempf" wrote:
if you used Access Data Projects, then it would be quite easy to share data
in between databases

it would take ZERO code and ZERO effort

you just would need to add database.schema.object

schema is typcially 'dbo' for SQL 2000.. in SQL 2005; it'll break more into
a ROLE type.. like Accounting, HR, Recruiting, Manufacturing, etc

but seriously
make your life easier-- move to Access Data Projects

"Josetta" wrote in message

oups.com...



I've looked around here to see if this can be done, but haven't found
the answer. Here is what I want to do...


I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.


To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.


Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.


Any ideas?- Hide quoted text -


- Show quoted text -



  #4  
Old April 26th, 2007, 09:01 PM posted to microsoft.public.access
Aaron Kempf
external usenet poster
 
Posts: 245
Default Using Objects from one database in another database

well I'm so sorry that you chose the wrong database

'its far too advanced'

gag me with a spoon.. I can convert _ANY_ MDB to a well tuned ADP solution
in a week or two



"Josetta" wrote in message
oups.com...
Sorry, but this is not an option. I'm not even sure what Access Data
Projects is, but the database is far too advanced to make any sort of
switch.


On Apr 25, 8:13 pm, "Aaron Kempf" wrote:
if you used Access Data Projects, then it would be quite easy to share

data
in between databases

it would take ZERO code and ZERO effort

you just would need to add database.schema.object

schema is typcially 'dbo' for SQL 2000.. in SQL 2005; it'll break more

into
a ROLE type.. like Accounting, HR, Recruiting, Manufacturing, etc

but seriously
make your life easier-- move to Access Data Projects

"Josetta" wrote in message

oups.com...



I've looked around here to see if this can be done, but haven't found
the answer. Here is what I want to do...


I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.


To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.


Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.


Any ideas?- Hide quoted text -


- Show quoted text -





  #5  
Old April 27th, 2007, 02:16 AM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Using Objects from one database in another database

Josetta wrote:

I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.

To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.

Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.


Using add-ins would work for your purpose. However they are
troublesome to work with. See my Add-in Tips, Hints and Gotchas
page at http://www.granite.ab.ca/access/addins.htm

Another option would be to merge the two databases. Then use the
network id to determine which set of forms and reports they can see.

API: Get Login name
http://www.mvps.org/access/api/api0008.htm

Tony

--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
  #6  
Old April 27th, 2007, 02:17 AM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Using Objects from one database in another database

Josetta wrote:

Sorry, but this is not an option. I'm not even sure what Access Data
Projects is, but the database is far too advanced to make any sort of
switch.


Aaron clearly didn't look at your question.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
  #7  
Old April 27th, 2007, 08:45 PM posted to microsoft.public.access
Aaron Kempf
external usenet poster
 
Posts: 245
Default Using Objects from one database in another database

wtf are you talknig about kid

Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database?


if someone changes the rows in the operations database-- this would be
immediately accessible from the Sales Database-- and it wouldn't run like
_CRAP_ over a network

keep all your tables and queries in one place-- where they belong-- SQL
SERVER

it's a much simpler architecture


"Tony Toews [MVP]" wrote in message
...
Josetta wrote:

Sorry, but this is not an option. I'm not even sure what Access Data
Projects is, but the database is far too advanced to make any sort of
switch.


Aaron clearly didn't look at your question.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm



  #8  
Old April 27th, 2007, 08:46 PM posted to microsoft.public.access
Aaron Kempf
external usenet poster
 
Posts: 245
Default Using Objects from one database in another database

and that API is unnecessary

Select SUSER_SNAME() gives you the name of the current user in ADP



"Tony Toews [MVP]" wrote in message
news
Josetta wrote:

I have a two databases -- One for Sales and one for Operations. These
are used by two groups of people with some obvious overlap (like the
boss, for example). Some of the data is the same, so I'm using only
one backend database file to hold the data. However, I want to have
one piece (projects) from the Operations database to also be used in
the sales database. The projects piece of it consists of several
forms, subforms, reports, queries, code, etc.

To cut down on maintenance (so without actually importing) I want to
be able to use those forms, subforms, etc. in the Sales database,
exactly as they are in the Operations database.

Is there a way to do this so that any changes made in the Operations
database are also reflected in the Sales database? I've never created
Add-ins before, but before I go trying to make this happen, is this
the way I need to go? Would this even work? I guess what I'm saying
is I want to link code, forms, reports, etc. just like I can link
tables.


Using add-ins would work for your purpose. However they are
troublesome to work with. See my Add-in Tips, Hints and Gotchas
page at http://www.granite.ab.ca/access/addins.htm

Another option would be to merge the two databases. Then use the
network id to determine which set of forms and reports they can see.

API: Get Login name
http://www.mvps.org/access/api/api0008.htm

Tony

--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm



  #9  
Old April 27th, 2007, 10:19 PM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Using Objects from one database in another database

"Aaron Kempf" wrote:

Aaron clearly didn't look at your question.


wtf are you talknig about kid


Reread the original question. It had nothing to do with tables or records.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
  #10  
Old April 27th, 2007, 10:19 PM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Using Objects from one database in another database

"Aaron Kempf" wrote:

and that API is unnecessary

Select SUSER_SNAME() gives you the name of the current user in ADP


And totally irrelevant in an MDB.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 




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


All times are GMT +1. The time now is 03:03 AM.


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