Advertisement

05.09.1999 at 08:00PM PDT, ID: 10159161
[x]
Attachment Details

Filter a crosstab query

Asked by oldstick in Microsoft Access Database

Tags: ,

I have a large crosstab query.  I need to filter the records returned based on batch number.

In the batch number column, if I type, forms!frmBatch!cboBatchSelect, where the combo box on the form holds the batch number, I get an error message.  The message advises that jet doesnt recognize the expression or field.

If I type in Like Forms!frm... etc I still receive the same error.

If I type in Like 260, where 260 is a batch number, the correct records are returned.  I am sure the syntax for referring to the combo box is correct and doesnt contain any typos.  What am I doing wrong there.

The other problem I have is, that there are five columns on the report, based on the crosstab query, that sometimes don't exist in the records returned from the query.

For example, there may be a field on the report called Terms.  The crosstab may not return that column when the records are filtered.  I consequently get an error advising that the field is not recognized and the report subsequently crashes.  How can I code for these five columns to be ignored if the underlying records don't have a matching column.  If that's possible?

so, two problems above which are driving me to despair!

thanks for your help
Start Free Trial
[+][-]05.09.1999 at 08:05PM PDT, ID: 1990574

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.1999 at 08:21PM PDT, ID: 1990575

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.1999 at 08:50PM PDT, ID: 1990576

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.1999 at 09:31PM PDT, ID: 1990577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.1999 at 09:16AM PDT, ID: 1990578

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.1999 at 07:46PM PDT, ID: 1990579

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.1999 at 06:16AM PDT, ID: 1990580

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: forms, query
Sign Up Now!
Solution Provided By: dcordner
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32