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

How to use access 2007 external database paths



 
 
Thread Tools Display Modes
  #1  
Old February 13th, 2010, 09:49 PM posted to microsoft.public.access.gettingstarted
codeSlave
external usenet poster
 
Posts: 4
Default How to use access 2007 external database paths

I have a database that several computers access. I have a query that is a
union something like this:
SELECT main.*,"list1" as owner
FROM C:\path\test1.mdb.main
where main.listname"condition"
UNION
Select main.*, "list2" as owner
From C:\paths\test2.accdb.main

Now this works fine from the hosting computer, but from another computer it
doesn't. I am now using the shared drive name\path in a second query and
advising users to use the correct query. this seems like a hack. Is there a
way of making it so I can use just one query so all users trying to execute
the query can without multiple query's?
  #2  
Old February 13th, 2010, 10:39 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default How to use access 2007 external database paths

If I'm understanding you correctly, the issue is that C:\paths\test1.accdb
and C:\paths\test2.accdb don't exist on the users computers, but rather on
the host computer. You should be able too use an UNC instead:

SELECT main.*,"list1" as owner
FROM \\servername\C$\path\test1.mdb.main
where main.listname"condition"
UNION
Select main.*, "list2" as owner
From \\servername\C$\paths\test2.accdb.main

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"codeSlave" wrote in message
...
I have a database that several computers access. I have a query that is a
union something like this:
SELECT main.*,"list1" as owner
FROM C:\path\test1.mdb.main
where main.listname"condition"
UNION
Select main.*, "list2" as owner
From C:\paths\test2.accdb.main

Now this works fine from the hosting computer, but from another computer
it
doesn't. I am now using the shared drive name\path in a second query and
advising users to use the correct query. this seems like a hack. Is there
a
way of making it so I can use just one query so all users trying to
execute
the query can without multiple query's?


  #3  
Old February 14th, 2010, 12:41 AM posted to microsoft.public.access.gettingstarted
codeSlave
external usenet poster
 
Posts: 4
Default How to use access 2007 external database paths

Works like a champ, much thanks.

"Douglas J. Steele" wrote:

If I'm understanding you correctly, the issue is that C:\paths\test1.accdb
and C:\paths\test2.accdb don't exist on the users computers, but rather on
the host computer. You should be able too use an UNC instead:

SELECT main.*,"list1" as owner
FROM \\servername\C$\path\test1.mdb.main
where main.listname"condition"
UNION
Select main.*, "list2" as owner
From \\servername\C$\paths\test2.accdb.main

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"codeSlave" wrote in message
...
I have a database that several computers access. I have a query that is a
union something like this:
SELECT main.*,"list1" as owner
FROM C:\path\test1.mdb.main
where main.listname"condition"
UNION
Select main.*, "list2" as owner
From C:\paths\test2.accdb.main

Now this works fine from the hosting computer, but from another computer
it
doesn't. I am now using the shared drive name\path in a second query and
advising users to use the correct query. this seems like a hack. Is there
a
way of making it so I can use just one query so all users trying to
execute
the query can without multiple query's?


.

 




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 08:37 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.