Ask a Question related to ASP Database, Design and Development.
-
jt #1
MS Access Query Search Fails on Boolean
I have a query that I would like to search on where my field is a boolean.
This is the error and the sql statment below,
Error: No value given for one or more required parameters.
SQL : SELECT * FROM [tablename] WHERE Red-Flag = True
Appreciate any help on this, since I am new to SQL.
Thank!
jt
jt Guest
-
Access query fails after upgrade to MX 7.1
After upgrading to ColdFusion MX 7.1, the following query (against an Access 2000 database) errors out on the *** field when running the ColdFusion... -
Forcing Reader 6 to Boolean search
I have developed a search form in Acrobat 5. One of the options is to search for a pre-defined term in the docinfo Keywords field. This works fine in... -
query search on access db ... scratching my hair ... help plz
I have posted this Q earlier also, but NO solution so far. I still hope there must be someone with a solution. My Q: displaying only SPECIFIC... -
asp search returns no results from access query
access 2000 query: here's what i want to do. from an asp page, perform a search on a table in access. i have used sql code in the asp page... -
BCP query out executed by xp_cmdshell works fine from query analyzer but fails from VB Component
Hi all, I have a stored procedure which returns a vast number of record and i have to write the output into a csv file. I'm using BCP utility to... -
Bob Barrows #2
Re: MS Access Query Search Fails on Boolean
jt wrote:
a) Since you've used a non-standard character (-) in your field name, the> I have a query that I would like to search on where my field is a
> boolean.
>
> This is the error and the sql statment below,
>
> Error: No value given for one or more required parameters.
>
> SQL : SELECT * FROM [tablename] WHERE Red-Flag = True
>
> Appreciate any help on this, since I am new to SQL.
>
> Thank!
> jt
first thing to try is surrounding it with brackets :
WHERE [Red-Flag] = True
I was going to offer another option, but the more i think about this one,
the more I think that this will sove your problem. I think Jet is trying to
evaluate Red-Flag as the subtraction of the value contained in the Flag
parameter from the value contained in the Red parameter. In this case it's
not the correct interpretation from your point of view, but that's one of
the consequences of using non-standard characters in your object names.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
roger #3
Re: MS Access Query Search Fails on Boolean
"jt" wrote
Does "Red-Flag" mean [Red] minus [Flag]?> Error: No value given for one or more required parameters.
>
> SQL : SELECT * FROM [tablename] WHERE Red-Flag = True
If it's one field I think I'd rename it "RedFlag"
or perhaps "[Red-Flag]" would work in the SQL.
--
roger
roger Guest
-
jt #4
Re: MS Access Query Search Fails on Boolean
Thanks! Work great.
jt
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:uja4UC5JEHA.1312@TK2MSFTNGP12.phx.gbl...to> jt wrote:>> > I have a query that I would like to search on where my field is a
> > boolean.
> >
> > This is the error and the sql statment below,
> >
> > Error: No value given for one or more required parameters.
> >
> > SQL : SELECT * FROM [tablename] WHERE Red-Flag = True
> >
> > Appreciate any help on this, since I am new to SQL.
> >
> > Thank!
> > jt
> a) Since you've used a non-standard character (-) in your field name, the
> first thing to try is surrounding it with brackets :
> WHERE [Red-Flag] = True
>
> I was going to offer another option, but the more i think about this one,
> the more I think that this will sove your problem. I think Jet is trying> evaluate Red-Flag as the subtraction of the value contained in the Flag
> parameter from the value contained in the Red parameter. In this case it's
> not the correct interpretation from your point of view, but that's one of
> the consequences of using non-standard characters in your object names.
>
> Bob Barrows
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>
>
jt Guest



Reply With Quote

