How do companies fit into the report? In the main report or
in the subreport?
Is there any grouping in either report?
At this point, all I can do is guess that the recotd source
query for one of the reports contains a inappropriate Join.
Well The Main Report Source Is a Query, The Same Query That Used to
Create My Mail Merge. Records Only Appear In The Mail merge Query,
Once An Enquiry is Created Note On Enquiry Form i have a continuous
Subform which i can assign Drawings To the Enquiry, The Link Field On
The Main Form and Subform is [Enquiry No] and also have a [ProjectQNo]
look Combo on the Form that I can Select a Project then i pop along to
a company form, go to a 3rd tab which has a subform on it, The Subform
is Related to a Table Called Enquiry Link, Which has 2 Primary Keys,
[ProjectQno] and [Enquiry No] Plus Specific Information Date Received,
Quote Used. Etc, Which the table enable me to have mutiply Enquirys
Per Project, or Same Enquiry and Company But Different Project.
When I Select the [Enquiry No] From the Dropdown On The Enquiry Link
Form, its assigns that Enquiry No To The Company ID
Once thats Then Assigned The Record will Show Up in The MailMerge
Query.
Which i could have 4 Records In That Query Which are all The Same
Enquiry The Only This Is Different is The Company ID, on Each Record,
So Then What Ive Done Is Created a Mail Merge Macro, That Opens a Word
Document And it Pulls All The Information It Project Address, Company
Address, Enquiry Details, Etc, as Ive Shown All The Fields In The Mail
Merge Through The Links from different tables,
Which then i can scroll through all the Enquiry letters on each
pages,
Which then After i Close the Mail Merge and printed my letters off the
same macro askes me if i want up date the Enquiry Records. If Click
Yes, it Automaticly Puts a Sent Date is a Sent Field in the Enquiry
Table, So there for the MailMerge Query will never pick that enquiry
up again as the sent date criteria in the query is set to Is Null (I
Created an Update Query to do this)
All This Works Perfectly,
So What I decided to do was, before The System Asks me to update the
MailMerge Quiry I Created a Report, Which Is One Page, and all is
Needed on The Report is [Project Title] and The [ProjectQNo] Also I
Have The [Enquiry No] This Is Drawing Issue Sheet, To go With The
Letters,
As The Report Source is the Mail Merge i could if i Wanted Have all
the Other Fields In there, But Not Needed,
Then I Put a SubReport In and This has [Drawings No] and [Enquiry No]
fields and The Master and Child Links are Set to [Enquiry No] Works
Like My Subform for my Enquiry,and When i Preview My Report, The
Report Has The Correct [Project QNo] the Correct [Project Title] and
The Correct [Enquiry No] In main Form, and In Sub Report It allso has
the correct Drawings Listed For That Enquiry. With The Same [Enquiry
No]
and this works, perfectly fine If I ONLY Id Assigned One Enquiry To
and Company ID. But some Time i go out to several Companys So Its
Reproducing the Drawings again, Can i Just Set the Sub Report to Just
Show The One Lot of Records?