ASP SQL: INSERT problem help!

Joined
Jul 31, 2006
Messages
1
Reaction score
0
Hi,

I have one problem to insert values into a table. These values are selected from another table. my codes are the following:

st=Request("stat")
du=Request("dur")

set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "C:/dwmxweb/D1/nBase.mdb"
set rs = Server.CreateObject("ADODB.recordset")

sql2= "INSERT INTO PDF SELECT * FROM ResearchAssistants WHERE Status =" & "'" & st & "'" & " " _
& "AND Semester=" & "'" & du & "'"

My purpose is to display all data in database called PDF after above insertion from the other table, but this insert looks no working.

Thanks!
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top