Hi
We are trying to open a form showing items from the last 7 days, we have the below VBA criteria:
stLinkCriteria =
"([DateCreated] BETWEEN #" & Format(DateAdd("d", -7, Date), "d/m/yyyy") & _
"# AND #" & Format(Date, "d/m/yyyy") & "#) OR ([InvoiceDate] BETWEEN #" & _
Format(DateAdd("d", -7, Date), "d/m/yyyy") & "# AND #" & Format(Date, "d/m/yyyy") & "#)"
This is the result, but it says there is an error near #
([DateCreated] BETWEEN #27/7/2009# AND #3/8/2009#) OR ([InvoiceDate] BETWEEN #27/7/2009# AND #3/8/2009#)
I cant see the issue.
Thanks
B
We are trying to open a form showing items from the last 7 days, we have the below VBA criteria:
stLinkCriteria =
"([DateCreated] BETWEEN #" & Format(DateAdd("d", -7, Date), "d/m/yyyy") & _
"# AND #" & Format(Date, "d/m/yyyy") & "#) OR ([InvoiceDate] BETWEEN #" & _
Format(DateAdd("d", -7, Date), "d/m/yyyy") & "# AND #" & Format(Date, "d/m/yyyy") & "#)"
This is the result, but it says there is an error near #
([DateCreated] BETWEEN #27/7/2009# AND #3/8/2009#) OR ([InvoiceDate] BETWEEN #27/7/2009# AND #3/8/2009#)
I cant see the issue.
Thanks
B