A
Ann
Hi -
I need to query multiple fields to find out how many times a specific horse
was used for the purpose of a group or private lesson. My query is showing
me "all" billing reasons as opposed to only the "lesson" ones.
I've pasted the SQL below...is anyone able to help me with this? I just
want to see the horses that were used for lessons only.
I created this in Design View as I'm only familiar with creating queries
that way, so if you could please be specific with any answers, I'd really
appreciate it, since I do not know SQL.
Thanks!
SELECT BillingReasonsTable2forSubform.HorseBilling1,
BillingReasonsTable2forSubform.BillingReason1,
BillingReasonsTable2forSubform.HorseBilling2,
BillingReasonsTable2forSubform.BillingReason2,
BillingReasonsTable2forSubform.HorseBilling3,
BillingReasonsTable2forSubform.BillingReason3,
BillingReasonsTable2forSubform.HorseBilling4,
BillingReasonsTable2forSubform.BillingReason4,
BillingReasonsTable2forSubform.HorseBilling5,
BillingReasonsTable2forSubform.BillingReason5,
BillingReasonsTable2forSubform.HorseBilling6,
BillingReasonsTable2forSubform.BillingReason6,
BillingReasonsTable2forSubform.HorseBilling7,
BillingReasonsTable2forSubform.BillingReason7
FROM BillingReasonsTable2forSubform
WHERE (((BillingReasonsTable2forSubform.BillingReason1) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling2) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason2) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling3) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason3) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling4) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason4) Like "*less*"));
I need to query multiple fields to find out how many times a specific horse
was used for the purpose of a group or private lesson. My query is showing
me "all" billing reasons as opposed to only the "lesson" ones.
I've pasted the SQL below...is anyone able to help me with this? I just
want to see the horses that were used for lessons only.
I created this in Design View as I'm only familiar with creating queries
that way, so if you could please be specific with any answers, I'd really
appreciate it, since I do not know SQL.
Thanks!
SELECT BillingReasonsTable2forSubform.HorseBilling1,
BillingReasonsTable2forSubform.BillingReason1,
BillingReasonsTable2forSubform.HorseBilling2,
BillingReasonsTable2forSubform.BillingReason2,
BillingReasonsTable2forSubform.HorseBilling3,
BillingReasonsTable2forSubform.BillingReason3,
BillingReasonsTable2forSubform.HorseBilling4,
BillingReasonsTable2forSubform.BillingReason4,
BillingReasonsTable2forSubform.HorseBilling5,
BillingReasonsTable2forSubform.BillingReason5,
BillingReasonsTable2forSubform.HorseBilling6,
BillingReasonsTable2forSubform.BillingReason6,
BillingReasonsTable2forSubform.HorseBilling7,
BillingReasonsTable2forSubform.BillingReason7
FROM BillingReasonsTable2forSubform
WHERE (((BillingReasonsTable2forSubform.BillingReason1) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling2) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason2) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling3) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason3) Like "*less*")) OR
(((BillingReasonsTable2forSubform.HorseBilling4) Like "*less*")) OR
(((BillingReasonsTable2forSubform.BillingReason4) Like "*less*"));