Advertisement

07.16.2008 at 08:10PM PDT, ID: 23571987
[x]
Attachment Details

Crosstab Query gives valid field name error

Asked by lashler2 in Microsoft Access Database, Access Architecture/Design, Access Coding/Macros

Tags: , ,

I have developed an Access Crosstab Query that takes three fields from Table A for example with the names Name, No of hours worked, and Month.

I have the name as a row heading, No of hours worked as value and Month as the coloum heading.  The query executes well.  I then take another query and add the cross tab query to it and the fields of the second query are Name and each month Jan - Dec.  I then bulid a report and base it on the second query.

My problem occurs when there are less than twelve months in the crosstab query.  Beacause the second query and report have twelve field names representing the twelve months and the crosstab only has info for five months so it means 7 field names are going to be invalid.

Does anyone have a suggestion about how to fix this or a different approach I can take?Start Free Trial
[+][-]07.16.2008 at 08:24PM PDT, ID: 22022118

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

Zones: Microsoft Access Database, Access Architecture/Design, Access Coding/Macros
Tags: microsoft, access, 2003
Sign Up Now!
Solution Provided By: TWBit
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628