Error In Query (Update)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smart System
    New Member
    • Jul 2010
    • 1

    Error In Query (Update)

    What is wrong in this code ?

    Code:
    rs.Open " update TblName set FldNum=" & text1.Text & " where ID_FldName=" & Text2.Text , db, adOpenDynamic, adLockOptimistic
    Knowing that
    FldNum ---> Data type (Number)
    ID_FldName ---> Data Type (AutoNumber)

    And What the correct code ?
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Execute on Connection Object :

    Db.Execute " update TblName set FldNum=" & text1.Text & " where ID_FldName=" & Text2.Text


    Regards
    Veena

    Comment

    Working...