Option Compare Database
Private Sub GroupFooter2_Format(Cancel As Integer, FormatCount As Integer)
Me.Label116.Caption = "Week :" & Format(GoBack(Me.Date_of_Error), "short date") & " Total:"
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "Frm_Enter_Criteria"
End Sub
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Frm_Enter_Criteria", acNormal, , , acFormEdit, acDialog
End Sub
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbMonday) = 1
InDate = DateAdd("d", -1, InDate)
Loop
GoBack = InDate
End Function
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbSunday) = 1
InDate = DateAdd("d", -1, InDate)
Loop
GoBack = InDate + 1
End Function
Me.Label116.Caption = "Week :" & Format(GoBack(Me.Date_of_Error), "short date") & " Total:"
Option Compare Database
Private Sub GroupFooter2_Format(Cancel As Integer, FormatCount As Integer)
Me.Label116.Caption = "Week :" & Format(GoBack(Me.Date_of_Error), "short date") & " Total:"
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "Frm_Enter_Criteria"
End Sub
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "Frm_Enter_Criteria", acNormal, , , acFormEdit, acDialog
End Sub
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbSunday) = 1
InDate = DateAdd("d", -1, InDate)
Loop
GoBack = InDate + 1
End Function
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbMonday) = 1
InDate = DateAdd("d", -1, InDate)
If InDate = [Forms]![Frm_Enter_Criteria]![Beg_Date] Then Exit Do
Loop
GoBack = InDate
End Function
Between [Forms]![Frm_Enter_Criteria]![Beg_Date] And and DateAdd('d',6,[Forms]![Frm_Enter_Criteria]![Beg_Da
te])
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbMonday) = 1
InDate = DateAdd("d", -1, InDate)
If InDate = [Forms]![Frm_Enter_Criteria]![Beg_Date] Then Exit Do
Loop
GoBack = InDate
End Function
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbMonday) = 1
If InDate = [Forms]![Frm_Enter_Criteria]![Beg_Date] Then Exit Do
InDate = DateAdd("d", -1, InDate)
Loop
GoBack = InDate
End Function
Public Function GoBack(InDate As Date) As Date
Do Until Weekday(InDate, vbMonday) = 1
If InDate = [Forms]![Frm_Enter_Criteria]![Beg_Date] Then Exit Do
InDate = DateAdd("d", -1, InDate)
Loop
GoBack = InDate
End Function
are you asking me if i know what the difference is? or should this go in my report?>= [Forms]![Frm_Enter_Criteria]![Beg_Date] And < DateAdd('m',1,[Forms]![Frm_Enter_Criteria]![Beg_Da
te])
NOT
Between [Forms]![Frm_Enter_Criteria]![Beg_Date] And DateAdd('m',1,[Forms]![Frm_Enter_Criteria]![Beg_Da
te])