Article View: comp.lang.basic.visual.misc
Article #426Re: Syntax Question?
From: Gavin Walker
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
34 lines
1768 bytes
1768 bytes
Chad, Maybe I'm being dim here. Try: sql = "SELECT DISTINCT songs.Song FROM songs WHERE songs.artist = '" & Trim(strMyVariable) & "' " Where strMyVariable is a variable holding your artist name. Is this what you mean? Writing a music site are you? Should I be helping you ;o)? Regards, Gavin Walker Chad Gough wrote in message ... >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:
<7eeifr$s07$1@news.yokohama.att.ne.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ambO2.5836$033.1763@news.rdc1.il.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,27ae79593ba8da5c X-Google-Attributes: gid110e3b,public X-Google-Thread: 108db9,27ae79593ba8da5c X-Google-Attributes: gid108db9,public X-Google-Thread: 10ce47,27ae79593ba8da5c X-Google-Attributes: gid10ce47,public X-Google-Thread: 1477ed,27ae79593ba8da5c X-Google-Attributes: gid1477ed,public X-Google-Thread: fdea5,27ae79593ba8da5c X-Google-Attributes: gidfdea5,public From: "Gavin Walker" <NOSPAMgwalker@n2k.com> Subject: Re: Syntax Question? Date: 1999/04/07 Message-ID: <7eeifr$s07$1@news.yokohama.att.ne.jp> X-Deja-AN: 463493534 Content-Transfer-Encoding: 7bit References: <ambO2.5836$033.1763@news.rdc1.il.home.com> Content-Type: text/plain; charset="iso-2022-jp" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: AT&T Internet Service Mime-Version: 1.0 Newsgroups: comp.lang.basic.visual.misc,cz.comp.microsoft.asp,fidonet.asp,microsoft.public.inetexplorer.ie5beta.programming.dhtml.authoring,microsoft.public.inetserver.iis.activeserverpages