vulhu06 > 22-07-13, 11:14 AM
Xuân Thanh > 22-07-13, 11:26 AM
Private Sub cmdLuu_Click()
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("tblHangHoa", dbOpenTable)
If IsNull(Me.txtMaHang) = True Or IsNull(Me.txtTenHang) = True Or IsNull(Me.txtDVT) = True Then
MsgBox"Phai ghi du du lieu" , , "Chu y"
Me.txtMaHang.Sefocus
Exit Sub
Else
rs.AddNew
rs.Fields(0) = Me.txtMaHang
rs.Fields(1) = Me.txtTenHang
rs.Fields(2) = Me.txtDVT
rs.Update
End If
rs.Close
End Sub
tt1212 > 22-07-13, 11:30 AM
vulhu06 > 22-07-13, 11:50 AM
vulhu06 > 22-07-13, 12:01 PM
Xuân Thanh > 22-07-13, 01:30 PM
vulhu06 > 14-08-13, 12:19 AM
vulhu06 > 14-08-13, 12:55 AM
vulhu06 > 14-08-13, 01:16 AM