Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Problem

Status
Not open for further replies.

Swi

Programmer
Joined
Feb 4, 2002
Messages
1,978
Location
US
I have the following query:

Code:
SELECT * INTO [Excel 8.0;Database=T:\NAF-INPUT.XLS].[Sheet1] FROM [GREENBAR.DBF] WHERE PID = '7014280' OR PID = '7171535' OR PID = '7355771' OR PID = '7944731' OR PID = '8014909' OR PID = '8021885' OR PID = '8025759' OR PID = '8025771' OR PID = '8035844' OR PID = '8070586' ORDER BY PID

It gives me the error 'Query input must contain at least one table or query'

Any ideas?

Swi
 
GREENBAR.DBF

what type of table is this a local access table ,linked table,or a dbase table
 
DBASE table.

Swi
 
try
Code:
SELECT * INTO Sheet1  
in '' [Excel 8.0;Database=T:\NAF-INPUT.XLS]
FROM  GREENBAR IN 'filepath' [dBase IV;]
 
Why not simply use linked tables ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I will give both suggestions are try.

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top