Hi guys,
My recruitment department has asked me to add a form to there database that will show were the applicants heard about the vacancies but I have run into a problem.
I have a sub form that's default view is Continuous Forms linked to the main form by a reference number.
The sub form has a maximum of 14 records it can open up to and that are what I would like it to do every time like this:
Media Count
Herald/Sunday Herald 11
Daily Record/Sunday Mail 2
Metro 13
Word of Mouth 4
Local Paper 4
Job Centre 16
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
my problem is that not all media types are are always quoted by the callers so some of the vacancies would look like this:
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
when I would like it to look like this:
Herald/Sunday Herald 0
Daily Record/Sunday Mail 0
Metro 0
Word of Mouth 0
Local Paper 0
Job Centre 0
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
my Sql is:
SELECT Enquire.[Job no] AS RefNo, Ads.[Ad Id], Ads.[Ad Name] AS Media, Count(Ads.[Ad Name]) AS [Count] FROM Enquire INNER JOIN Ads ON Enquire.Media=Ads.[Ad Id] GROUP BY Enquire.[Job no], Ads.[Ad Id], Ads.[Ad Name] ORDER BY Enquire.[Job no] DESC;
I have tried right joins to try and force the unquoted media types to appear with no luck. Does anyone have any ideas that I may try or an alternative. Thanks in advance.
My recruitment department has asked me to add a form to there database that will show were the applicants heard about the vacancies but I have run into a problem.
I have a sub form that's default view is Continuous Forms linked to the main form by a reference number.
The sub form has a maximum of 14 records it can open up to and that are what I would like it to do every time like this:
Media Count
Herald/Sunday Herald 11
Daily Record/Sunday Mail 2
Metro 13
Word of Mouth 4
Local Paper 4
Job Centre 16
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
my problem is that not all media types are are always quoted by the callers so some of the vacancies would look like this:
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
when I would like it to look like this:
Herald/Sunday Herald 0
Daily Record/Sunday Mail 0
Metro 0
Word of Mouth 0
Local Paper 0
Job Centre 0
Vacancy Bulletin 7
Journal 8
Journal Websites 9
NHS IntrAnet 14
Referredby Manager 11
SHOW 30
Campaign 13
Open Day 14
my Sql is:
SELECT Enquire.[Job no] AS RefNo, Ads.[Ad Id], Ads.[Ad Name] AS Media, Count(Ads.[Ad Name]) AS [Count] FROM Enquire INNER JOIN Ads ON Enquire.Media=Ads.[Ad Id] GROUP BY Enquire.[Job no], Ads.[Ad Id], Ads.[Ad Name] ORDER BY Enquire.[Job no] DESC;
I have tried right joins to try and force the unquoted media types to appear with no luck. Does anyone have any ideas that I may try or an alternative. Thanks in advance.