🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1018

Re: In desperat need of help!

#1018
From: Jan Karpisek
Date: Mon, 26 Jun 2000 00:00
22 lines
1369 bytes
Hi,
maybe too late, just to let you know that work around is:

Query4->ParamByName("AName")->AsString=Edit1->Text + "%";

for your query:

> SELECT DISTINCT Artist, Album, Release FROM Artist, Album, Track
> WHERE Artist LIKE :AName
> AND Artist.AID = Track.AID
> AND Track.CDID = Album.CDID

> The SQL-statement works with no errors but I have the need to search
> with wildcards in order to for example serch by artist and for rage and
> get Rage Against The Machine in the DBGrid. (I hope you understand what
> I mean)
> The problem is this, I don't know how to use wildcards. In Access97 that
>
> I use for my database, I can use '*rage*' and in other databases they
> use % instead of *. The problem is that it does not work in a Query with
>
> SQL-statement and parameters. I've tried to write '*:AName*', '%:AName%'
Technical Details
Message-ID: <39572ad7@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39510530.3B1C3E40@hem.passagen.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,f87b6e8a69c0b435
X-Google-Attributes: gidfcd2b,public
From: "Jan Karpisek" <jkarpisek@inprise.cz>
Subject: Re: In desperat need of help!
Date: 2000/06/26
Message-ID: <39572ad7@dnews>
X-Deja-AN: 639054526
References: <39510530.3B1C3E40@hem.passagen.se>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Trace: 26 Jun 2000 03:05:11 -0800, 127.0.0.1
Organization: Borland Inprise CZ
Newsgroups: borland.public.cppbuilder.database.multi-tier