Hi all,
I have the following code under a command button (OK):
This seems to work fine
When it opens absent2 report it displays the wrong dates in the report.
If I pick a date that starts 01 it works but any other date and it'll display as shown.
Is there a reason for this?
Thanks
Martin
I have the following code under a command button (OK):
Code:
Dim strcondition As Variant
On Error Resume Next
Dim countme As String
Dim team As String
countme = "countme"
team = "IT"
strcondition = "[Start_Date] BETWEEN #" & Me.txt_date & "# AND #" & Me.txtEndDate & "# AND absent.absentcode = '" & countme & "' AND tbl_users.team = '" & team & "'"
DoCmd.OpenReport "absent2", acViewPreview, , strcondition
This seems to work fine
When it opens absent2 report it displays the wrong dates in the report.
If I pick a date that starts 01 it works but any other date and it'll display as shown.
Is there a reason for this?
Thanks
Martin