Solved

TDAOQuery problem

Posted on 2002-06-24
3
198 Views
Last Modified: 2011-09-20
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.
0
Comment
Question by:cvbmn
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 7103293
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
 

Expert Comment

by:gi7mhl
ID: 7103473
TDAOQuery or TADOQuery??
0
 

Author Comment

by:cvbmn
ID: 7104093
Thanks Meikl !

Yess that was a problem !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now