Hello,
I get the following error when I try to open my report:
Here is my code:
Info:
[Opened Date] is a date field, as are allTicketStart and tmpdate.
[Referred to] is a text field, as is curEmployee
I know for a fact the bolded code works.
Thank you for your time.
I get the following error when I try to open my report:
Run-time error '13';
Type mismatch
Here is my code:
tmpdate = DateAdd("d", 1, Me.allTicketEnd)
DoCmd.OpenReport "Tickets Details", acViewReport, , "[Opened Date] Between #" & Me.allTicketStart & "# And #" & tmpdate & "#" And "[Referred to] = '" & Me.curEmployee & "'"
Info:
[Opened Date] is a date field, as are allTicketStart and tmpdate.
[Referred to] is a text field, as is curEmployee
I know for a fact the bolded code works.
Thank you for your time.