When I use this line of code:
DoCmd.OpenReport stDocName, acPreview, , "GroupName = Forms![frmTAbyGR]![txtGroupName]" And "[OpenDate] Between #" & Format(BeginDate, "mm\/dd\/yyyy" & "# And #" & Format(EndDate, "mm\/dd\/yyyy" & "#"
I get a type mismatch error. Any idea as to why I would be getting this error and something I can try to make it work correctly.
I'm delaring both variables as strings.
Thanks for the help!
camidon
DoCmd.OpenReport stDocName, acPreview, , "GroupName = Forms![frmTAbyGR]![txtGroupName]" And "[OpenDate] Between #" & Format(BeginDate, "mm\/dd\/yyyy" & "# And #" & Format(EndDate, "mm\/dd\/yyyy" & "#"
I get a type mismatch error. Any idea as to why I would be getting this error and something I can try to make it work correctly.
I'm delaring both variables as strings.
Thanks for the help!
camidon