 |
|
ขอสอบถามหน่อยครับ พอดีเลือก book id 57 แต่ในช่อง check in วันที่ไม่เปลี่ยน 28/12/2013 (วันที่ในdatabase) แต่แสดงเป็น 23/12/2013 (วันที่ปัจจุบัน) เขียนด้วยvb.net (รบกวนด้วยครับมือใหม่หัดเขียน)
Code edit
Code (VB.NET)
Private Sub ButtonUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
ds = New DataSet
da = New SqlDataAdapter("UPDTA tb_book SET Title='" & txtTitle.Text.Trim() & "',Author='" & txtAuthor.Text.Trim() & "',Publisher='" & txtPublisher.Text.Trim() & "',Isbn='" & txtIsbn.Text.Trim() & "',fool='" & txtfool.Text.Trim() & "',ImagePath='" & txtImagePath.Text.Trim() & "','" & DateTimeExpire.Text.Trim() & "' WHERE Book_ID='" & txtBook_ID.Text.Trim() & "'", sqlcon)
da.Fill(ds, "tb_book")
MsgBox("แก้ไขข้อมูลเรียบร้อยแล้วครับ")
Call showdata()
Call cleardata()
End Sub
End Class
 
Tag : Ms SQL Server 2012, VBScript, Crystal Report, Web (ASP.NET), VB.NET
|
|
 |
 |
 |
 |
Date :
2013-12-24 13:40:56 |
By :
mrcool_307 |
View :
1061 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |