thanhhau828 > 14-05-13, 08:40 AM
Xuân Thanh > 14-05-13, 09:52 AM
Private Sub cmdAddNew_Click()
Dim STT As Integer
STT = DCount("MaKH", tblKhachHang) + 1
Me.MaKH.SetForcus
Me.MaKH = "KH" & Right("00000" & STT, 5)
Me.txtNgayDen = Date
End Sub
Private Sub cmdBill_Click()
Me.txtThanhTien = (Me.txtNgayDi.Value - Me.txtNgayDen.Value) * txtDonGia.Value
End Sub
danhxetnghiem > 14-05-13, 07:01 PM
thanhhau828 > 14-05-13, 08:07 PM
Xuân Thanh > 15-05-13, 10:48 AM
thanhhau828 > 15-05-13, 01:54 PM
Xuân Thanh > 15-05-13, 02:47 PM
Private Sub txtNgay_AfterUpdate()
If IsDate(txtNgay) = False Then
DoCmd.SetWarnings False
MsgBox"Ngay thang khong hop le" , , "Thong Bao"
DoCmd.SetWarnings True
Exit Sub
End If
End Sub