Ask a Question related to ASP Database, Design and Development.
-
David #1
JET Database Engine error '80040e14'
I've got a query command that is checking a field name against it's value.
The query is pulling from an Access 2000 DB. Here's the script:
dsn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<physical path to DB on
server>"
Set cnnCIData = Server.CreateObject("ADODB.Connection")
cnnCIData.Open dsn
sqlTrends = "SELECT per,perDisplay FROM trends WHERE " & strAliasT & " = yes
ORDER BY id DESC "
Set rstTrends = cnnCIData.Execute(sqlTrends)
===========================
HERE'S THE PROBLEM:
When strAlias is a value that does not start with a number (i.e. - dog),
then the query executes just fine. When strAlias does start with a number
(i.e. - 123dog) then I get the folling error:
Microsoft JET Database Engine error '80040e14'
Syntax error in query expression '123dog = yes'.
===========================
Why is this happening only when strAlias starts with a number?? I'm
confused. Perhaps someone can suggest to me a better way to compose my
query. Anything is appreciated. Thanks.
David Guest
-
Microsoft JET Database Engine error '80040e69'
Yesterday I wrote about an error I am getting on a ASP page using DSN people responded with some suggestions which I have tried and now I get the... -
Error 80040e14 on connecting to database
Any ideas?? Here is the error I'm getting: <p>Microsoft OLE DB Provider for ODBC Drivers</font> <font face="Arial" size=2>error... -
Microsoft JET Database Engine error '80004005'
Hi, I have windows 2000 server with IIS and I program ASP. I use the string: "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=basedatos.mdb;" to... -
Error: Microsoft JET Database Engine (0x80040E07)
I don't understand when I do (2), it will throw the error when I run the ASP. (1) is working fine. Should I use a single quote between the string in... -
HELP! ASP Error '80040e14' ???
Hi. A few days ago this seemed to have worked fine, and for some reason, I am getting the following error now when trying to access a page. In fact,... -
Aaron Bertrand - MVP #2
Re: JET Database Engine error '80040e14'
Why does your column name begin with a number???
Try
sqlTrends = "SELECT per,perDisplay FROM trends WHERE [" & strAliasT & "] =
yes ORDER BY id DESC "
Aaron Bertrand - MVP Guest
-
David #3
Re: JET Database Engine error '80040e14'
Thanks, that seemed to do the trick.
Is it not good practice to have column names that start with numbers?
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:e9GsrVjoDHA.2404@TK2MSFTNGP12.phx.gbl...> Why does your column name begin with a number???
>
> Try
>
> sqlTrends = "SELECT per,perDisplay FROM trends WHERE [" & strAliasT & "] =
> yes ORDER BY id DESC "
>
>
David Guest
-
Aaron Bertrand - MVP #4
Re: JET Database Engine error '80040e14'
> Is it not good practice to have column names that start with numbers?
No. Too much ambiguity.
Aaron Bertrand - MVP Guest



Reply With Quote

