Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add item to db and thereafter read it

Status
Not open for further replies.

44nato44

Programmer
Dec 12, 2008
115
NL
Hi

I have added something to my db and then I run a Select, but the new item which I added is not read

How can that be and can I do something to fix it ?

Code :

Dim arrAssProj
vartest = 0
arrAssProj = Split(varchkProjectAdd, ",")

if len(varchkProjectAdd) > 0 then

for i = 0 to ubound(arrAssProj)
SQLAssProj = "INSERT INTO tblTaskToolProRght (ProjectID, UserID) "
SQLAssProj = SQLAssProj & " VALUES ('" & arrAssProj(i) & "','" & varUserName & "')"
conn.execute(SQLAssProj)
vartest = vartest + 1

next

end if


' Creating new Array to contain current list of projects in the tblTaskToolProRght

SQLNewUsersProject = "SELECT * FROM tblTaskToolProRght WHERE UserID = '" & RsAllUsers("UserName") & "'"
RsNewUsersProject.Open SQLNewUsersProject, DSNTA, 2
 
Start with some simple debugging by adding a

response.write SQLAssProj in then FOR NEXT loop
and a response.end after next....




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top