The actual query and the sql are accurate. It changes the query based on the input, however the issue is with the docmd.openreport command. thats where the debugger stops. The sql works for the query, however when i try to open the report based on the query, thats when the issue arises of an...