Re: SQL In 2 Databases
- From: "Andrew D. Newbould" <newsgroups@xxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Apr 2005 01:43:35 +0100
In message <JqY4e.3595762$Zm5.579242@xxxxxxxxxxxxxxxxx>, Marky <z@xxxxx>
writes
>Hi Group
>
>I was wondering how i could get my simple SQL query to check through 2
>databases?
>Both databases are in c:\data\
>Called maindata.mdb & backdata.mdb
>both need to be search in table2
>
>My SQL is currently just "Select * From Table2"
>
>Any ideas?
>
>Thanks!
>
The only way I can see you achieving this in Access would be:
1. In maindata import / link the tables in backdata.
2. In maindata define a new View / Query which joins the real Table2
with the Linked Table2.
3. Change your query to use the new View.
If you had used MSDE or SQL Server then this would have been easy (even
if the databases resided on different PC's).
--
Andrew D. Newbould E-Mail: newsgroups@xxxxxxxxxxxxxxxxx
ZAD Software Systems Web : www.zadsoft.com
.
- References:
- SQL In 2 Databases
- From: Marky
- SQL In 2 Databases
- Prev by Date: Re: VB coverage in new online mag - VB6 or VB.NET?
- Next by Date: Re: Ugly Command Buttons???
- Previous by thread: Re: SQL In 2 Databases
- Next by thread: Simple Copy and Paste from Excel to Access
- Index(es):