E
EmAlbritton via AccessMonster.com
Hello all. I am having a bit of trouble getting my query to work properly.
I am trying to run a query (for my report) based on criteria entered on a
form.
I have two problems with this.
1. I can't get the form fields to update the query so that the report will
provide the correct information.
2. In a somewhat unrelated (I think) situation, one of my two combo boxes
isn't cascading like it should.
My main data entry form has several cascading combos...so I am pretty sure
that I have that setup right...just wondering if there is a problem because
this time around it is unbound.
the SQL for the query follows:
SELECT [Table-CallLogData].DateCallReceived, [Table-CallLogData].Market,
[Table-CallLogData].Client, [Table-CallLogData].Company, [Table-CallLogData].
CallType, [Table-CallLogData].TestReason, [Table-CallLogData].DOTStatus,
[Table-CallLogData].TestType, [Table-CallLogData].CollectorName
FROM [Table-CallLogData]
WHERE ((([Table-CallLogData].DateCallReceived)=[Forms]![Form-ReportSelection]!
[ctrl-DateSelector]) AND (([Table-CallLogData].Market)=[Forms]![Form-
ReportSelection]![ctrl-MarketSelector]) AND (([Table-CallLogData].Client)=
[Forms]![Form-ReportSelection]![ctrl-ClientSelector]));
Oh...one other thing...I don't think I want my criteria to be and....is there
a way to get an and/or in there.....basically, user can select any
combination of the three options, or no options at all which would report the
entire database.
Thanks in advance for your help.
Emily
I am trying to run a query (for my report) based on criteria entered on a
form.
I have two problems with this.
1. I can't get the form fields to update the query so that the report will
provide the correct information.
2. In a somewhat unrelated (I think) situation, one of my two combo boxes
isn't cascading like it should.
My main data entry form has several cascading combos...so I am pretty sure
that I have that setup right...just wondering if there is a problem because
this time around it is unbound.
the SQL for the query follows:
SELECT [Table-CallLogData].DateCallReceived, [Table-CallLogData].Market,
[Table-CallLogData].Client, [Table-CallLogData].Company, [Table-CallLogData].
CallType, [Table-CallLogData].TestReason, [Table-CallLogData].DOTStatus,
[Table-CallLogData].TestType, [Table-CallLogData].CollectorName
FROM [Table-CallLogData]
WHERE ((([Table-CallLogData].DateCallReceived)=[Forms]![Form-ReportSelection]!
[ctrl-DateSelector]) AND (([Table-CallLogData].Market)=[Forms]![Form-
ReportSelection]![ctrl-MarketSelector]) AND (([Table-CallLogData].Client)=
[Forms]![Form-ReportSelection]![ctrl-ClientSelector]));
Oh...one other thing...I don't think I want my criteria to be and....is there
a way to get an and/or in there.....basically, user can select any
combination of the three options, or no options at all which would report the
entire database.
Thanks in advance for your help.
Emily