Ask a Question related to Coldfusion Database Access, Design and Development.
-
AustMusic #1
ERROR - Need help please
Hi - I am hoping someone can shed some light on this error. Basically I am
trying to set a WHERE statement using a SESSION variable. This works fine on
my local machine (CF Development Version 7). When I post the page to my server
I get the following error:
<b>
Error Executing Database Query.
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in D:\home\hnt26b040\dealer\newline\newlines.cfm: line 118
116 : </table></cfoutput>
117 : <cfquery name="newlines" datasource="amsnews">
118 : SELECT * FROM newlines, amsSettings, brands WHERE
newlines.newlinesSeriesID = "#SESSION.auth.NewLinesNo#" AND
newlines.NewLinesBrand = brands.BrandsTitle ORDER BY newlines.NewLinesTitle DESC
119 : </cfquery>
120 : <cfquery name="newLinesLinks" datasource="amsnews">
</b>
Any ideas on what the problem could be? Thanks in advance. Brad
AustMusic Guest
-
Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of... -
Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:... -
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'
I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the... -
Unexpected error. A trappable error (C0000005) occurred in an external object.
Hi Elvin, After doing some reseaarch on this problem, I found there is a lot of issues which may cause the problem, for example, incorrect access... -
An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources... -
The ScareCrow #2
Re: ERROR - Need help please
First thing is that you do not have a join statement for the amsSettings table
Next I would suggest coping the entire query and pasting above the cfquery
tag, but enclose in cfoutput tag
This will show you the complete query. I would guess the session variable
value is being lost.
Ken
The ScareCrow Guest
-
Tyran #3
Re: ERROR - Need help please
I normally hit that error when I'm trying to address a field that doesn't exist in one of the tables. That would be my first check.
Tyran Guest
-
paross1 #4
Re: ERROR - Need help please
In addition to the missing correlation between the amsSettings table and at
least one of the other tables per Ken's suggestion (which will give you a
Cartesian join if unresolved), you should either remove the double quotes from
the #SESSION.auth.NewLinesNo# parameter if it is numeric, or use single quotes
if it is a text field ('#SESSION.auth.NewLinesNo#')
Phil
paross1 Guest
-
mattapple #5
Re: ERROR - Need help please
I think it is the double quotes.
It should either be single quotes or no quotes at all(if it is numeric)
mattapple Guest



Reply With Quote

