G
Guest
I want to try and use one report which will run on different queries.
Basically I have Exhibitors who have shown an interest in a "section" and I
now want to send out a reminder letter to those who have not yet entered.
So the query looks a bit like this:
SELECT [CurrentExhibitor&Section].Surname,
[CurrentExhibitor&Section].FirstName, [CurrentExhibitor&Section].SectionID,
SheepEntries.SheepEntryID
FROM [CurrentExhibitor&Section] LEFT JOIN SheepEntries ON
[CurrentExhibitor&Section].[Exhibitor ID] = SheepEntries.[Exhibitor ID]
WHERE ((([CurrentExhibitor&Section].SectionID)=21) AND
((SheepEntries.SheepEntryID) Is Null))
I have based the report on the CurrentExhibitor&Section query and so when I
try to run it (from a button on a menu) using:
DoCmd.OpenReport stDocName, acViewPreview, "psheepnoentriesqry", ,
acNormalPreview
I get a prompt message "Enter Parameter value" asking for the
SheepEntries.SheepEntryID - obviously this value is not on the report and is
only needed for the query.
If I just click on OK then the report runs fine - but obviously this is not
good.
Can anyone tell me either 1)how to supress the message / automatically
capture it and reply "OK"
or 2) prevent it from occuring without making a separte copy of the report
for each section?
Many thanks (and sorry for the long message!)
Helen
Basically I have Exhibitors who have shown an interest in a "section" and I
now want to send out a reminder letter to those who have not yet entered.
So the query looks a bit like this:
SELECT [CurrentExhibitor&Section].Surname,
[CurrentExhibitor&Section].FirstName, [CurrentExhibitor&Section].SectionID,
SheepEntries.SheepEntryID
FROM [CurrentExhibitor&Section] LEFT JOIN SheepEntries ON
[CurrentExhibitor&Section].[Exhibitor ID] = SheepEntries.[Exhibitor ID]
WHERE ((([CurrentExhibitor&Section].SectionID)=21) AND
((SheepEntries.SheepEntryID) Is Null))
I have based the report on the CurrentExhibitor&Section query and so when I
try to run it (from a button on a menu) using:
DoCmd.OpenReport stDocName, acViewPreview, "psheepnoentriesqry", ,
acNormalPreview
I get a prompt message "Enter Parameter value" asking for the
SheepEntries.SheepEntryID - obviously this value is not on the report and is
only needed for the query.
If I just click on OK then the report runs fine - but obviously this is not
good.
Can anyone tell me either 1)how to supress the message / automatically
capture it and reply "OK"
or 2) prevent it from occuring without making a separte copy of the report
for each section?
Many thanks (and sorry for the long message!)
Helen