I need to insert a bar chart,x-axis will be the inspection type (pre
final,Final...),y-axis is the number of faults,I did that but the x-axis
shows numbers 2 and 3,instead of pre final and final (labels r numbers
instead of text) !!!! Plz help
Your Row Source must include the table that actually stores the Inspection
Type title.
--
Duane Hookom
Microsoft Access MVP
"Duane Hookom" wrote:
> Again, what are the significant fields and tables? Do you have a table where
> Inspection Type might be a primary key? If so, what is the structure of this
> table and how does it relate to DataEntryT?
It's really confusing is you use [Inspection Type] as a field name in
DataEntryT when it actually stores the value from the ID field in
InspectionTypeT. In addition the InspectionTypeT has a field named
[Inspection Type]. I use a strick naming convention where the structure of
InspectionTypeT would be:
ityITyID autonumber primary key
ityTitle values like "Final" and "Pre Final"
Then your DataEntryT would have a field related to ityITyID named datITyID.
I also don't care much for DataEntryT since it doesn't say much about what
it is actually storing. I would think a name like InspectionResultsT might be
more appropriate but then I just get to be a bit of a naming freak at times
;-)
What is the Row Source of your chart?
What table and field contains the actual title value that is text?
SELECT DataEntryT.[WO #], DataEntryT.InspectionType,
Count(DataEntryT.InspectionType) AS CountOfInspectionType
FROM DataEntryT
GROUP BY DataEntryT.[WO #], DataEntryT.InspectionType
HAVING (((DataEntryT.[WO #])=["WO #"]));
I've added the table (InspectionTypeT) to the query (CountofInspectionsQ)
and joined the appropriate fields (InspectionType),the query now shows
nothing when I run it !!!! I start to get sick of this !!
SELECT DataEntryT.[WO #], InspectionTypeT.InspectionType,
Count(DataEntryT.InspectionType) AS CountOfInspectionType
FROM DataEntryT JOIN InspectionTypeT ON DataEntry.InspectionType =
InspectionTypeT.ID
WHERE DataEntryT.[WO #]=["WO #"]
GROUP BY DataEntryT.[WO #], InspectionTypeT.InspectionType;
I suggest you change the data type of InspectionType field in DataEntryT to
NUMERIC. It would also help if you hadn't given it the same name as the text
field in InspectionTypeT.
Then try the query that I suggested in my previous post.
Then NEVER use lookup fields in tables ever again ;-)