Syntax of a Query Question

Joined
Jul 5, 2005
Messages
4
Reaction score
0
In my .asp file I can display a value with the following code .....

<%Response.Write(session("uid"))%> (Displays Chris on the screen)

What I want to do now is amend my query to be something like this .....

fp_sQry="SELECT * FROM Teams WHERE (ManagerCode = " & Response.Write(session("uid"))

of course it doesn't work. It displays the text 'Chris' instead of including it in the search text.

What do I need to do to correct it?

Many Thanks, Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top