?
Solved

SELECT INTO with IN clause

Posted on 1999-12-30
2
Medium Priority
?
233 Views
Last Modified: 2008-03-17
I have to support a legacy application. I am using an ODBC connection to ACCESS - and want to create DBF files on the fly from ACCESS tables.

SELECT INTO should according to the ACCESS help files work, though not the ideal solution.  Assuming an access table named "temp"

SELECT * INTO temp IN [dBASE III; DATABASE=C:\APP] FROM temp

should work, and I should have a DBF named temp created.  But it doesn't work.  On the other hand

SELECT * INTO temp from temp IN [dBASE III; DATABASE=C:\APP]

does work and will create an ACCESS table from an external DBF.

stanl
0
Comment
Question by:stanl
2 Comments
 
LVL 5

Accepted Solution

by:
KMAN earned 800 total points
ID: 2316302
Hello stanl -

I think your SQL syntax is slightly off.  Try the following:

SELECT temp.* INTO temp IN 'C:\APP' [dBASE III;] FROM temp;

Good Luck!
0
 

Author Comment

by:stanl
ID: 2316589
Worked fine, first try - funny, I tried "C:\APPS" "dBASE III;" which should have been the same as [dBASE III;]- and that didn't work.

Code and Learn -



0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Case Study of using the Windows API to provide RS232 communications capability in Access without the use of Active-X controls.
Audit trails are very important in any system to hold people responsible for certain transactions and hold them to take ownership of their actions. This article is dedicated to all novice "Microsoft Access" developers.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question