Article View: borland.public.delphi.database
Article #2098D3 TQuery Problem:- Locked Machine
From: Colin Stewart Campbell
Date: Thu, 28 May 1998 00:00
Date: Thu, 28 May 1998 00:00
33 lines
1671 bytes
1671 bytes
Hi,
I'm writing a Database App for a friend who is a music agent to handle his
booking schedule, using the BDE to access Pdx tables. My app has a
parameterised query linked to a grid to view artists who are available on a
given date. The SQL statement is:
SELECT ArtistName FROM Artists WHERE ArtistNumber NOT IN
(SELECT ArtistNumber FROM Events WHERE
EventDate = :EventDate);
.....From which I get a good result set.
The code for manipulating the :EventDate parameter goes like:
procedure TForm1.DateTimePanelChange(Sender: TObject);
begin
with Query1 do
begin
Close;
ParamByName('EventDate').AsString:=DateToStr(DateTimePanel.Value);
Open;
end;
end;
This works a few times then locks up my machine, mouse and all.
If I'm doing something blindingly stupid, please enlighten me 'cos I'm new
to this SQL lark.
Any help appreciated,
Colin. colin.c@usa.net
Technical Details
Message-ID:
<356cc543.0@d2o41.telia.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,7f88e3a74bbe19d6,start X-Google-Attributes: gidffff5,public X-Google-Thread: fb0ea,7f88e3a74bbe19d6,start X-Google-Attributes: gidfb0ea,public X-Google-Thread: 115d96,7f88e3a74bbe19d6,start X-Google-Attributes: gid115d96,public From: "Colin Stewart Campbell" <colin.c@usa.net> Subject: D3 TQuery Problem:- Locked Machine Date: 1998/05/28 Message-ID: <356cc543.0@d2o41.telia.com> X-Deja-AN: 358337074 X-NNTP-Posting-Host: t5o41p8.telia.com X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@internet.telia.com Organization: Telia Internet Services Newsgroups: borland.public.delphi.database,borland.public.delphi.vcl.components.using,comp.lang.pascal.delphi.databases