Jim Buyens can you help me again?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to execute multiple update commands and I'm getting the error:
"Command text was not set for the command object. "

Session("aUpdateRows") is an array that contains Update statements (they are
there, there's no error with that)

This is how I have it written:
If Session("bUpdate") Then
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open Application("ConStr")
For nCtr = 0 to UBound(Session("aUpdateRows"),1)
oConn.Execute Session("aUpdateRows")(nCtr)
Next
oConn.Close
End If

Do you know why I get that error? Is there a better way to execute these
multiple updates?

Thanks!!
geniene
 
Glad to be of assistance. (!)

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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

Back
Top