i am trying to check
if any patrons has not returned their books yet.
so I would check as follows:
1. check if checked in date is null
2. check if today > duedate ( that means overdue)
the syntax was swtich to duedate < today
my code
it says type mismatch, which part did I wrote wrongly ?
I am hopeless in syntax..
if any patrons has not returned their books yet.
so I would check as follows:
1. check if checked in date is null
2. check if today > duedate ( that means overdue)
the syntax was swtich to duedate < today
my code
Code:
Dim strdate As String Dim nowdate As String nowdate = Format(Now(), "short date") strdate = "[duedate]=" & nowdate Me.today = nowdate DoCmd.OpenReport "transactions", acViewPreview, , "[Checked in date] Is Null" And "& #[duedate]# < & me.today&"
I am hopeless in syntax..
Comment