hueqlhc > 30-04-13, 02:05 AM
Private Sub Command26_Click()
Dim db As Database
Dim rs As Recordset
Dim stDocName As String
stDocName = "qryXoachon"
Set db = CurrentDb
Set rs = db.OpenRecordset("tblNhankhau", dbOpenTable)
If Chon = True Then
rs.MoveFirst
Do Until rs.EOF
rs.Edit
rs!Hoten = Me.Hotentxt.Value
rs!Thuongtru = Me.Thuongtrutxt.Value
rs.Update
rs.MoveNext
Loop
rs.Close
MsgBox "So lieu da sua OK"
End If
DoCmd.OpenQuery stDocName, acNormal, acEdit
tblNhankhau_subform.Requery
End Sub
quan_pc > 30-04-13, 10:08 AM
TvAcc > 30-04-13, 02:24 PM
Xuân Thanh > 01-05-13, 05:55 PM
Private Sub Command26_Click()
Dim rs As Recordset
Dim CauSQL As String
CauSQL = "SELECT * FROM tblNhankhau WHERE Chon=True"
Set rs = CurrentDb.OpenRecordset(CauSQL)
If rs.RecordCount > 0 Then
rs.MoveFirst
Do Until rs.EOF
rs.Edit
rs!Thuongtru = Me.Thuongtrutxt
rs!Chon = False
rs.Update
rs.MoveNext
Loop
End If
rs.Close
End Sub
TvAcc > 01-05-13, 08:20 PM
hueqlhc > 02-05-13, 01:03 AM
Xuân Thanh > 02-05-13, 03:49 PM
Private Sub Command26_Click()
Dim rs As Recordset
Dim CauSQL As String
CauSQL = "SELECT * FROM tblNhankhau WHERE Chon=True"
Set rs = CurrentDb.OpenRecordset(CauSQL)
If rs.RecordCount > 0 Then
rs.MoveFirst
Do Until rs.EOF
rs.Edit
If Not IsNull(Me.Thuongtrutxt) Then rs!Thuongtru = Me.Thuongtrutxt
If Not IsNull(Me.HoTentxt) Then rs!HoTen = Me.HoTentxt
If Not IsNull......'Thêm tiếp vào đây
rs!Chon = False
rs.Update
rs.MoveNext
Loop
End If
rs.Close
Msgbox "Da Update OK"
End Sub
bignosevinatex > 03-05-13, 10:22 PM
Xuân Thanh > 04-05-13, 10:48 AM
bignosevinatex > 04-05-13, 04:30 PM