hatashibl > 04-04-13, 05:37 PM
bomnhauag > 04-04-13, 08:26 PM
hatashibl > 04-04-13, 08:40 PM
Xuân Thanh > 05-04-13, 10:33 AM
Private Sub ThiHanh_Click()
Dim StartDate As Date
Dim StopDate As Date
StartDate = DateSerial(Me.txtNam, Me.txtThang, 1)
StopDate = DateAdd("m", 1, StartDate) - 1
Dim CauSQL As String
If Me.txtThang = "" And Me.txtNam = "" Then CauSQL = "Select * from tblGiaoDich"
If Me.txtThang <> "" And Me.txtNam <> "" Then CauSQL = "Select * from tblGiaoDich Where Ngay Between " & StartDate & " and " & StopDate
Form!frmChiTiet.RecordSouce = CauSQL
End Sub