I know this might have been asked a hundred times in this forum, and I must have looked at a fair few of them posts today, but I just can get this to work. Here is the problem. I have a report that I want to generate depending on the values the user has selected on a form. So far I’ve tried to pass the criteria in as a where clause with the
option but I get no results back, I have also created a query that uses the values of the form items to generate the report but still I get a blank report (The query I wrote does work when I put hard coded strings into the criteria section
) , can someone tell me which is the best way to run the reports using from criteria and how it is possible to use the criteria on a form to filter a recordset, one thing to add I have just though of is that, the form is in modal mode. I don’t know if this makes a difference.
Any help would be greatly.
Simon
Code:
DoCmd.OpenReport "rptFormAnnualLeave", acViewPreview, "qryGetAbsence", strWhere
) , can someone tell me which is the best way to run the reports using from criteria and how it is possible to use the criteria on a form to filter a recordset, one thing to add I have just though of is that, the form is in modal mode. I don’t know if this makes a difference.
Any help would be greatly.
Simon