Command Object questions

Results 1 to 2 of 2

Thread: Command Object questions

  1. #1
    Join Date
    Dec 1969

    Default Command Object questions

    Here is the error I am getting:<BR> Error Type:<BR> Microsoft VBScript runtime (0x800A01C2)<BR> Wrong number of arguments or invalid property <BR> assignment: &#039objcmd.ActiveConnection&#039<BR> /mars/products/delete.asp, line 62<BR><BR>Here is the code up to this point:<BR><BR>dim objconn,objcmd,strSQL<BR> set objconn = server.CreateObject("ADODB.Connection")<BR> set objcmd = server.CreateObject("ADODB.Command")<BR> objConn.Open "DSN=WOFSQL","userid","mypassword" <BR> objcmd.ActiveConnection objConn &#039&#060;--Line 62<BR><BR>Thanks for your help in advance<BR>SKOOTER

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Command Object questions

    try this<BR><BR>set objcmd.ActiveConnection = objConn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts