report show info based on two query fields

  • Thread starter Thread starter rdspollin
  • Start date Start date
R

rdspollin

i need a report to show info based on two seperate query fields. i currently
have the criteria for one of these fields set as "[Forms]![Frm: Report
Selector]![Customer]" however i need the [Customer] info on [Frm: Report
Selector] to search two seperate fields to see if the customer info is in
either field A OR B then and return report results appropriately. can this be
achieved?
 
WHERE Field1 = [Forms]![Frm: ReportSelector]![Customer] OR
Field2 = [Forms]![Frm: ReportSelector]![Customer]
 
hmmm actually this doesnt work exactly how i want it to

this is my code

WHERE ((([Qry: Customer Query].[Customer Name])=[Forms]![Frm: Report Selector]
![Customer]) OR (([Qry: Main].[End Customer])=[Forms]![Frm: Report Selector]!
[Customer]) AND (([Qry: Main].[Engine Family])=[Forms]![Frm: Report Selector]!
[Family]) AND (([Qry: WIP Sub].[Included on Customer Satus Report])=-1) AND (
([Qry: Main].[keep on customer status report])=-1))

it seems to return various 'family' informaiton, almost as if it was isnoring
[Engine Family] / [Family]

thank you! :)
WHERE Field1 = [Forms]![Frm: ReportSelector]![Customer] OR
Field2 = [Forms]![Frm: ReportSelector]![Customer]
[quoted text clipped - 4 lines]
 
ah!

just moved my OR to the end

like this

WHERE ((([Qry: Main].[Engine Family])=[Forms]![Frm: Report Selector]![Family])
AND (([Qry: WIP Sub].[Included on Customer Satus Report])=-1) AND (([Qry:
Main].[keep on customer status report])=-1) AND (([Qry: Customer Query].
[Customer Name])=[Forms]![Frm: Report Selector]![Customer])) OR ((([Qry: Main]
..[End Customer])=[Forms]![Frm: Report Selector]![Customer]))

sorted :)

hmmm actually this doesnt work exactly how i want it to

this is my code

WHERE ((([Qry: Customer Query].[Customer Name])=[Forms]![Frm: Report Selector]
![Customer]) OR (([Qry: Main].[End Customer])=[Forms]![Frm: Report Selector]!
[Customer]) AND (([Qry: Main].[Engine Family])=[Forms]![Frm: Report Selector]!
[Family]) AND (([Qry: WIP Sub].[Included on Customer Satus Report])=-1) AND (
([Qry: Main].[keep on customer status report])=-1))

it seems to return various 'family' informaiton, almost as if it was isnoring
[Engine Family] / [Family]
thank you! :)
[quoted text clipped - 3 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top