نمایش نتایج 1 تا 2 از 2

نام تاپیک: ارور No Value Given در آپدیت بانک اطلاعاتی

  1. #1

    ارور No Value Given در آپدیت بانک اطلاعاتی

    سلام دوستان
    وقتی میخوام بانک اطلاعاتی رو آپدیت کنم ، روی ExecuteNonQuery این خطا رو میده : No Value Given For One Or More Required Parameters

    هم با DataAdapter این مشکل رو دارم هم با Command
    واقعا نتونستم مشکل رو پیدا کنم . اعصابمو خورد کرده


  2. #2

    Unhappy نقل قول: ارور No Value Given در آپدیت بانک اطلاعاتی

    کد با Data Adapter:

    Dim str As String = "Insert Into Info Values (Nam='" & txtName.Text & "',Famil='" & txtLastName.Text & "',Adress='" & txtAdress.Text & "',Mail='" & txtMail.Text & "',Phone='" & txtPhone.Text & "',Mobile='" & txtMob.Text & "')"
    da = New OleDbDataAdapter
    da.InsertCommand = New OleDbCommand(str, conn)
    conn.Open()
    da.InsertCommand.ExecuteNonQuery()
    conn.Close()
    کد با Command :

    Dim cmd As New OleDbCommand("Insert Into Info Values (Nam='" & txtName.Text & "',Famil='" & txtLastName.Text & "',Adress='" & txtAdress.Text & "',Mail='" & txtMail.Text & "',Phone='" & txtPhone.Text & "',Mobile='" & txtMob.Text & "')", conn)
    conn.Open()
    cmd.ExecuteNonQuery()
    conn.Close()

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •