Ask a Question related to ASP Database, Design and Development.
-
slonik #1
I need help with a ASP Error
Date: 02/26/2004 01:00PM PST
Here is the code.
'------------------------------------------------'
'- Gets Managers details such as name & email -'
'------------------------------------------------'
Sub GetManagerDetails(id)
Dim strSQL, rs
strSQL = "SELECT tblUsers.Name, tblUsers.LastName,
tblUsers.EmailWork "&
"FROM tblUsers "& _
"WHERE (((tblUsers.ID)="& id &"));"
' I placed response.write(strsql) here and that showed me that the
strSQL was in fact ok.
Set rs = conn.Execute(strSQL) '--> this is LINE 202
If not rs.bof and not rs.eof Then
strManagerName = rs("Name") & " " & rs("LastName")
strManagerEmail = rs("EmailWork")
End If
rs.Close
Set rs = Nothing
End Sub
slonik 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... -
Ray at #2
Re: I need help with a ASP Error
Show ~us~ the result of Response.Write strSQL. Also, you can drop those
parentheses altogether.
strSQL = "SELECT [Name],[Lastname],[EmailWork] FROM [tblUsers] WHERE [ID]="
& id
Ray at work
"slonik" <zen770@aol.com> wrote in message
news:Xzt%b.1218119$9p3.228171@news.easynews.com...the> Date: 02/26/2004 01:00PM PST
>
>
>
> Here is the code.
>
> '------------------------------------------------'
> '- Gets Managers details such as name & email -'
> '------------------------------------------------'
> Sub GetManagerDetails(id)
> Dim strSQL, rs
> strSQL = "SELECT tblUsers.Name, tblUsers.LastName,
> tblUsers.EmailWork "&
> "FROM tblUsers "& _
> "WHERE (((tblUsers.ID)="& id &"));"
>
> ' I placed response.write(strsql) here and that showed me that the
> strSQL was in fact ok.
>
> Set rs = conn.Execute(strSQL) '--> this is LINE 202
>
> If not rs.bof and not rs.eof Then
> strManagerName = rs("Name") & " " & rs("LastName")
> strManagerEmail = rs("EmailWork")
> End If
> rs.Close
> Set rs = Nothing
> End Sub
> .
> Dim strManagerName, strManagerEmail
> Dim k, intManagerID
> For k = 0 to intManagersIDs
> intManagerID = Request.Form("ID"& k)
> Call GetManagerDetails(intManagerID)
> Next
>
> Problem is: even when I do response.write(strSQL) and can see thatit> intManagerID variable has a numeric value, once I execute the SQL string> looks like the variable becomes empty. There is a valid connection to the
> database that's being used before and after this statement. If I force the
> value to be 171 by hardcoding it, it works too.
>
>
> Error:
>
> Microsoft JET Database Engine error '80040e14'
>
> Extra ) in query expression '(((tblUsers.ID)=))'.
>
> /trellistech/test/admin/re_email_mgrs.asp, line 202
>
> thanks for you times
>
>
>
>
Ray at Guest



Reply With Quote

