Problem with ADO data control Update query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neo008
    New Member
    • Jun 2007
    • 85

    #1

    Problem with ADO data control Update query

    Hi All,

    I have built up an adodc connnection and using it through connection strings.

    I'm facing problem with update query-

    code looks like-

    Code:
    adodc1.recordource="update products set stock=" & NewStock & " where product_id=" & proid & ""
    
    adodc1.refresh
    Though It gives error at refresh command, data is updated successfully.
    if i dont refresh datacontrol it does not give error nor update anything.

    error message is "OPERATION IS NOT ALLOWED WHEN THE OBJECT IS CLOSED"

    can somebody help me out regarding this

    -NE☼
Working...