Solved

TDAOQuery problem

Posted on 2002-06-24
3
201 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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