Results 1 to 3 of 3

Thread: Update Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2004
    Posts
    108

    Unhappy Update Problem

    i got a problem to update my data
    the command like below

    ==============================================

    Me.Visible = False

    Dim Cmd As New OleDbCommand("UPDATE Employee SET efirstname='" & Me.empfirstname.Text & "',elastname='" & Me.emplastname.Text & "',ephone='" & Me.empphone.Text & "',eaddress='" & Me.empaddress.Text & "',eaddress1='" & Me.empaddress1.Text & "',eaddress2 ='" & Me.empaddress2.Text & "',eemail='" & Me.empemail.Text & "' where efirstname='" & Me.empfirstname.Text & "'And elastname = '" & Me.emplastname.Text & "'", conn)

    Try
    conn.Open()
    Cmd.ExecuteNonQuery()
    conn.Close()
    Catch ex As Exception
    'catch the exception
    End Try

    ==============================================

    is there any problem with my code ?

    or can somebody post up a sample coding with the update command !!
    thank you very much

    ==============================================

  2. #2
    Member SnappleBoy's Avatar
    Join Date
    Aug 2002
    Location
    Israel!
    Posts
    41
    Do you get an error message of any sort? if so, what is it?

    I think you have at least one problem, you can't update the private and last name, the reason: you have only two text boxes for them, you should have four, currentfirstname, currentlastname, newfirstname, newlastname...
    i like my icon, made it myself...

    except for Buttercap of course.
    and for the symbol in the back that is copied from Slipknot...


    I like the icon i use but isn't really mine.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2004
    Posts
    108

    Talking

    i know what u mean already ~
    thanx for helping

Posting Permissions

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



Click Here to Expand Forum to Full Width