SQL - Join one table in one destination to another table in another destination (DBF) 
Author Message
 SQL - Join one table in one destination to another table in another destination (DBF)

I am doing an SQL join between 2 DBASE tables one is located on the local
Drive and the other is located on the Network drive.

The following is the code which i have used

NetPath = "O:\BASE\"
sLocalpath = App.Path

Set MyDbf = OpenDatabase(sLocalpath, False, False, "dBASE III;")
ssql1 = "SELECT " & sSqltable & ".* FROM DEALER INNER JOIN " & sSqltable & "
ON DEALER.DEAL_NUM = " & sSqltable & ".DEALERNO ORDER BY DEALER.DEAL_PCODE,
" & sSqltable & ".BARCODE;"

The problem i am having due to defining the Database directory as sLocalPath
the join to the DEALER.DBF is being carried out locally.  But the file is
sitting in NetPath.

How can i JOIN the two Tables sitting in different locations.

Thanks

replyto


_______________________________



Mon, 11 Nov 2002 03:00:00 GMT  
 SQL - Join one table in one destination to another table in another destination (DBF)
We are currently recruiting for 2 Software Houses in the
South East, would you be interested in moving jobs?

If so please send an updated copy of your CV to


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful



Mon, 11 Nov 2002 03:00:00 GMT  
 SQL - Join one table in one destination to another table in another destination (DBF)
Thanks just messed up my thread

--
_______________________________
Naushad Naeem, Portech Systems

Web  : www.portech.co.uk
Tel: +44 (0)121 6242626
Fax: +44 (0)121 6240550


Quote:
> We are currently recruiting for 2 Software Houses in the
> South East, would you be interested in moving jobs?

> If so please send an updated copy of your CV to


> * Sent from AltaVista http://www.altavista.com Where you can also find

related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is
Beautiful


Tue, 12 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Join several tables to ONE table

2. need help please:joined tables,add new entries based on one table columns

3. need help please:joined tables,add new entries based on one table columns

4. select into creating too many rows in destination table

5. help i need to join two or more tables to one

6. Auto create record for one-to-one relationship tables

7. Exporting Tables From One Access DB to a New One

8. Eliminate records of one table based on another table record count

9. import from one table to many tables

10. Comparing two tables and then updating one table.

11. Retrieval of value entered in one table to another table

12. multiple tables to one table

 

 
Powered by phpBB® Forum Software