SELECT INTO with IN clause

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
stanlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KMANCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stanlAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.