Article View: comp.lang.basic.visual.misc
Article #433Re: Syntax Question?
From: Chad Gough
Date: Tue, 06 Apr 1999 00:00
Date: Tue, 06 Apr 1999 00:00
50 lines
2429 bytes
2429 bytes
Still having problems!
sql = "SELECT DISTINCT songs.Song FROM songs WHERE songs.artist
='"&art&"'"
(quotes after songs.artist = are single, double, variable, double, single,
double)
and i still get:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted; the
operation requested by the application requires a current record.
/file.asp, line 52
If i use:
<%=art%>
anywhere else on the page, it displays the right info !?!?
Ideas?
David Wier <dwier@home.com> wrote in message
news:H7dO2.29152$SZ5.9745@news.rdc1.tx.home.com...
> I have a tutorial on using Quotes in ASP at my site...check it out.
> --
> David Wier
> http://www.aspexpress.com
> http://www.augustwind.com
> Designer of the Best ASP Editor in the Galaxy
>
> 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:
<NJeO2.5841$033.1778@news.rdc1.il.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ambO2.5836$033.1763@news.rdc1.il.home.com> <H7dO2.29152$SZ5.9745@news.rdc1.tx.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1477ed,27ae79593ba8da5c X-Google-Attributes: gid1477ed,public X-Google-Thread: 108db9,27ae79593ba8da5c X-Google-Attributes: gid108db9,public X-Google-Thread: 110e3b,27ae79593ba8da5c X-Google-Attributes: gid110e3b,public X-Google-Thread: fdea5,27ae79593ba8da5c X-Google-Attributes: gidfdea5,public X-Google-Thread: 10ce47,27ae79593ba8da5c X-Google-Attributes: gid10ce47,public From: "Chad Gough" <chad131@home.com> Subject: Re: Syntax Question? Date: 1999/04/06 Message-ID: <NJeO2.5841$033.1778@news.rdc1.il.home.com> X-Deja-AN: 463099177 References: <ambO2.5836$033.1763@news.rdc1.il.home.com> <H7dO2.29152$SZ5.9745@news.rdc1.tx.home.com> 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 923367405 24.2.195.246 (Mon, 05 Apr 1999 19:56:45 PDT) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Mon, 05 Apr 1999 19:56:45 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