🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database
Article #2002

SQL property-set at run time-dates

#2002
From: Paul Day
Date: Mon, 15 Mar 1999 00:00
22 lines
1388 bytes
Hi
I am using buttonclick events to set the SQL property of a Query object at
run time. This will display the records I require depending on the
parameters of the statement.
I have no problem with say :

Query1.SQL.Add ('SELECT * FROM aircraft where type=Sea king');

aircraft being my record table and type being one of the fields.

However... another of the fields in the table is a date field, and I need to
display records in response to the user typing in a date in an Edit box and
use this date as the WHERE. ie

Query1.SQL.Add ('SELECT * FROM aircraft WHERE built =  Edit1.Text');

This of course does not work but neither does anything I Try....Can anyone
help,
I must be mixing things up and missing a simple point..
Im using Delpi2.

Paul
Technical Details
Message-ID: <7cjnlk$7b9$1@news5.svr.pol.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 115d96,c04ca33623416bb0,start
X-Google-Attributes: gid115d96,public
From: "Paul Day" <paul@pday.freeserve.net.uk>
Subject: SQL property-set at run time-dates
Date: 1999/03/15
Message-ID: <7cjnlk$7b9$1@news5.svr.pol.co.uk>
X-Deja-AN: 455328697
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@theplanet.net
X-Trace: news5.svr.pol.co.uk 921526772 7529 62.136.20.62 (15 Mar 1999 19:39:32 GMT)
Organization: Customer of Planet Online
NNTP-Posting-Date: 15 Mar 1999 19:39:32 GMT
Newsgroups: borland.public.delphi.database