Solved

terrible problem

Posted on 2003-11-12
5
310 Views
Last Modified: 2010-04-05
i have a mdb data base(with a query)
i add some components
after that when i push a button i delete all records like that
calcul.SQL.Clear;
calcul.SQL.Add('delete from calcQuery');
calcul.ExecSQL;
now when i want to add again records is a error and i don't know why
error is like this
Current provider does not support returning multiple recordsets from a single execution
How can i rezolve this
Thanks
35
0
Comment
Question by:tinti13
5 Comments
 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9730829
>now when i want to add again records is a error and i don't know why
How do you add the records?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9730923
guessing u use the same query

for a select-query you must use open-method

just a guess, and as gloomy alread asked:
How do you add the records?

meikl ;-)
0
 

Accepted Solution

by:
saienlyh earned 35 total points
ID: 9731540
//del table
with Calcul do
begin
  SQL.Clear;
  SQL.Add('delete * from  calcQuery');
  ExecSQL;
  if not active then active = true;
end;


0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9731838
Hi,

I noticed you set active AFTER ExecSQL, but I don't see the
inverse operation BEFORE the ExecSQL.

Plus, you don't reset the SQL property before reopening the query.

HTH,

Andrew
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9762365
just wondering about the accepted answer
-> this answer should usual cause an exception
--> if this is wanted?
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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