Update Table from another Table using Visual Basic Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Serenityquinn15
    New Member
    • Oct 2007
    • 30

    Update Table from another Table using Visual Basic Code

    Hi!

    I have two Table names:

    tblupdate
    tblDetails


    What i want to do is to update the table tblupdate from tblDetails using the button in Visual basic Interface.

    Here my code:

    Str = " Update tblupdate " & _
    " Set tblupdate.Text1 = (Select Text1 From tblDetails where tblDetails.Text 1 = '" & Text1.Text & "') " & _
    " Where tblupdate.EEID = tblDetails.EEID "
    con.Execute Str

    but the error says : "No value given for one or more required parameters."

    Pls. help me. tnx.
Working...