Article View: comp.lang.basic.visual.misc
Article #428Syntax Question?
From: Chad Gough
Date: Mon, 05 Apr 1999 00:00
Date: Mon, 05 Apr 1999 00:00
11 lines
1459 bytes
1459 bytes
I have a VB script in an ASP page running a query. The SQL code looks like: sql = "SELECT DISTINCT songs.Song FROM songs WHERE songs.artist = '????' " What is the syntax to put a variable where ???? is? The query works fine if I replace ???? with a value from the database!?!? Any help would be appreciated. Thanks
Technical Details
Message-ID:
<ambO2.5836$033.1763@news.rdc1.il.home.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: 110e3b,27ae79593ba8da5c,start X-Google-Attributes: gid110e3b,public X-Google-Thread: fdea5,27ae79593ba8da5c,start X-Google-Attributes: gidfdea5,public X-Google-Thread: 10ce47,27ae79593ba8da5c,start X-Google-Attributes: gid10ce47,public X-Google-Thread: 1477ed,27ae79593ba8da5c,start X-Google-Attributes: gid1477ed,public X-Google-Thread: 108db9,27ae79593ba8da5c,start X-Google-Attributes: gid108db9,public From: "Chad Gough" <chad131@home.com> Subject: Syntax Question? Date: 1999/04/05 Message-ID: <ambO2.5836$033.1763@news.rdc1.il.home.com> X-Deja-AN: 463035493 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@home.net X-Trace: news.rdc1.il.home.com 923353606 24.2.195.246 (Mon, 05 Apr 1999 16:06:46 PDT) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Mon, 05 Apr 1999 16:06:46 PDT Newsgroups: comp.lang.basic.visual.misc,cz.comp.microsoft.asp,fidonet.asp,microsoft.public.inetexplorer.ie5beta.programming.dhtml.authoring,microsoft.public.inetserver.iis.activeserverpages