 |
|
ช่วยหน่อยครับ ผมได้ทำปุ่มแก้ไขแล้วพอรันผมจะใช้ปุ่มแก้ไขแล้วพอกดไม่ติดอ่าครับ |
|
 |
|
|
 |
 |
|
55 งง อยากได้รายละเอียดมากกว่านี้อ่า
|
 |
 |
 |
 |
Date :
2012-04-27 09:18:35 |
By :
mayapopy |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอม โค้ดจงมา (เอาโค้ดมาดูดิ คนที่เขารู้จะได้ช่วยตอบ)
|
 |
 |
 |
 |
Date :
2012-04-27 09:47:36 |
By :
SeedNew |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (VB.NET)
ReadConnectSQLServer()
If txtContactID.Text.Trim() = "" Then
MessageBox.Show("ไม่สามารถแก้ไขรายการได้ !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information)
ElseIf txtRentalID.Text.Trim() = "" Then
MessageBox.Show("ไม่สามารถแก้ไขรายการได้ !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information)
Dim SqlEdit As String
SqlEdit = "UPDATE " & tb_Name & " SET " & field1 & "='" & txtRentalID.Text & "'," & field12 & "='" & txtDesposit.Text & "' WHERE (" & fieldId & "='" & txtContactID.Text & "')"
Dim com As New SqlCommand(SqlEdit, Conn)
Dim result As Int16
result = com.ExecuteNonQuery()
If result = 0 Then
MessageBox.Show("ไม่สามารถแก้ไขรายการได้ !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("แก้ไขเรียบร้อยแล้ว !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
ShowData() ' แสดงข้อมูลในSQL
End If
คือแบบว่าพอเวลาผมจะใช้ปุุม แก้ไขเนี่ย แบบมันกดปุ่มแล้วมันไม่ติด
|
 |
 |
 |
 |
Date :
2012-04-27 12:04:43 |
By :
jikaro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|