Hello,
I am trying to use a WHERE Clause from a query as a filter for a report, but I am having trouble...I am refering to a faq in this forum as guidlines ([URL unfurl="true"]http://www.tek-tips.com/faqs.cfm?spid=703&sfid=2657) [/url], but it;'s not workinbg out..
here is my where clause;
I am trying to use a WHERE Clause from a query as a filter for a report, but I am having trouble...I am refering to a faq in this forum as guidlines ([URL unfurl="true"]http://www.tek-tips.com/faqs.cfm?spid=703&sfid=2657) [/url], but it;'s not workinbg out..
here is my where clause;
Code:
WHERE (((tblClients.LastName)=[Forms]![frmSearchExtras]![cboClient]) AND ((tblExtra.Done)=[Forms]![frmSearchExtras]![Check4]) AND ((tblExtra.Type)=[Forms]![frmSearchExtras]![txtExtra] Or (tblExtra.Type)=[Forms]![frmSearchExtras]![txtBO])) OR (((tblClients.LastName)=[Forms]![frmSearchExtras]![txtClient2]) AND ((tblExtra.Type)=[Forms]![frmSearchExtras]![txtExtra] Or (tblExtra.Type)=[Forms]![frmSearchExtras]![txtBO]) AND ((tblExtra.JobNumber)=[Forms]![frmSearchExtras]![cboJobNumber]));
[code]
1. can this be done?
2. how should i formulate that?
Thanks,
Sylvain