I have a report with a changing where clause for the recordsource.
I am using
DoCmd.OpenReport "Action", acPreview, , sqlCondition, , strfinal3 + "." & " Status: " + strfinal2
sqlCondition = " Year_entered BETWEEN 2003 AND 2004 "
( the year is input from user)
The recordsourse for the report is a query that look like this.
SELECT Company.name, Action.last_contact_date, Action.next_action_date, Action.next_action, Company.list_status
FROM [Action] INNER JOIN Company ON Action.company_id=Company.company_id;
I use a form as the parameters. Even if i pass the parameters it is still asking for the Year_entered.
I spend a lot of time debugging but can't figure out why.
Thanks in advance.
I am using
DoCmd.OpenReport "Action", acPreview, , sqlCondition, , strfinal3 + "." & " Status: " + strfinal2
sqlCondition = " Year_entered BETWEEN 2003 AND 2004 "
( the year is input from user)
The recordsourse for the report is a query that look like this.
SELECT Company.name, Action.last_contact_date, Action.next_action_date, Action.next_action, Company.list_status
FROM [Action] INNER JOIN Company ON Action.company_id=Company.company_id;
I use a form as the parameters. Even if i pass the parameters it is still asking for the Year_entered.
I spend a lot of time debugging but can't figure out why.
Thanks in advance.