BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I join DBF files located in different folders?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Patrick
Guest





PostPosted: Wed Oct 11, 2006 3:37 pm    Post subject: How can I join DBF files located in different folders? Reply with quote



How can I join 2 DBF files located in different folders to make one query?

Ex: I want to join files: C:\ICDATA\Icitem.dbf AND C:\PEDATA\PEBMDT.dbf

My OLE DB Provider is Visual Foxpro (v6 free tables DBF).

If the files were in the same folder, the query would be:
Select Icitem.Item, Pebmdt.Bomno
From Icitem
Join Pebmdt On (Pebmdt.Bomno = Icitem.Item)
Where Pebmdt.Bomno = 'WIDGET1'
Order By Pebmdt.Bomno

I normally use TADOConnection.

TIA!--patrick
Back to top
Steve Zimmelman
Guest





PostPosted: Wed Oct 11, 2006 7:09 pm    Post subject: Re: How can I join DBF files located in different folders? Reply with quote



You might be able to use something like this:

Select Icitem.Item, Pebmdt.Bomno
From [C:\ICDATA\Icitem.dbf] Icitem
Join [C:\PEDATA\PEBMDT.dbf] Pebmdt On (Pebmdt.Bomno = Icitem.Item)
Where Pebmdt.Bomno = 'WIDGET1'
Order By Pebmdt.Bomno

-Steve-

"Patrick" <pdohogne (AT) majorcustomcable (DOT) com> wrote in message
news:452cc964 (AT) newsgroups (DOT) borland.com...
Quote:
How can I join 2 DBF files located in different folders to make one query?

Ex: I want to join files: C:\ICDATA\Icitem.dbf AND C:\PEDATA\PEBMDT.dbf

My OLE DB Provider is Visual Foxpro (v6 free tables DBF).

If the files were in the same folder, the query would be:
Select Icitem.Item, Pebmdt.Bomno
From Icitem
Join Pebmdt On (Pebmdt.Bomno = Icitem.Item)
Where Pebmdt.Bomno = 'WIDGET1'
Order By Pebmdt.Bomno

I normally use TADOConnection.

TIA!--patrick

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.