Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Report design

Status
Not open for further replies.

Newposter

Technical User
May 9, 2002
735
US
I'm trying to design a problog report based on 3 tables. I have successfully designed a form based on these. The common field to all 3 is PartNo. The main table has PartNo, Description and Problem. Another table has PartNo, WhereUsed and Quantity. A third table has PartNo, Date and Status.

I can't set a one-to-many relationship based on PartNo, since this field may not be unique if future problems occur with the same part. However, the form displays two subforms based on the 2nd and 3rd table, and shows the info I need (i.e., weekly entries for status, so there are multiple status entries for each problem).

I can't seem to design a report that mimics the layout of the form. If I have multiple status entries and multiple WhereUsed, it replicates the entries from the first table, PartNo, Description and Problem. How do I create the report, or change my DataSource to reflect what I want?

Here's my DataSource:

SELECT [tblProblems].[PartNo], [tblProblems].[Description], [tblProblems].[Problem], [tblStatus].[Date], [tblStatus].[Status], [tblWhereUsed].[WhereUsed], [tblWhereUsed].[Usage] FROM (tblProblems INNER JOIN tblWhereUsed ON [tblProblems].[PartNo]=[tblWhereUsed].[PartNo]) INNER JOIN tblStatus ON [tblProblems].[PartNo]=[tblStatus].[PartNo]; Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top