Solved

TDAOQuery problem

Posted on 2002-06-24
3
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month4 days, 10 hours left to enroll

635 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