TDAOQuery problem

TDAOQuery problem

I'm tring to create table in some ACCESS (DAO) database.
I want to use TDAOQuery to do that, but I have problems.

Here is example of SQL :

CREATE TABLE A
(
A1 CHAR(200),
A2 CHAR(200),
A3 CHAR(200),
A4 CHAR(200),
A5 CHAR(200),
A6 CHAR(200),
A7 CHAR(200))

When I try to put it in active (SQL) I get this ERROR :

The query is a DDL query and cannot be used as a row source.

How to fix that

Thanks.
cvbmnAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kretzschmarConnect With a Mentor Commented:
look, if there is a method like execSQL or execute
and use this method instead of active or open

(don't know anything about tdaoquery)

meikl ;-)
0
 
gi7mhlCommented:
TDAOQuery or TADOQuery??
0
 
cvbmnAuthor Commented:
Thanks Meikl !

Yess that was a problem !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.