lcline
10-29-2001, 05:57 AM
Hello,
I have a table that has 30 + types of equipment with multiple frequencies (5 day, 10 Day, 20 Day)at which certain tasks are done. What I need is when I specify a 20 Day frequency for a specific piece of equipment is combine only the 5 Day and 10 Day and 20 Day onto one report. Below is the SQL for the query that I have tried. The problem is it gives the specific equipment along with all other non-specified with matching frenquencies.
SELECT [Main Task table].[Equipment Type], [Main Task table].Frequency
FROM [Main Task table]
WHERE ((([Main Task table].[Equipment Type])=" 9 Volt HSCL (500)") AND (([Main Task table].Frequency)="5 Days")) OR ((([Main Task table].Frequency)="10 Days")) OR ((([Main Task table].Frequency)="20 Days"));
Thanks in advance for any help provided
I have a table that has 30 + types of equipment with multiple frequencies (5 day, 10 Day, 20 Day)at which certain tasks are done. What I need is when I specify a 20 Day frequency for a specific piece of equipment is combine only the 5 Day and 10 Day and 20 Day onto one report. Below is the SQL for the query that I have tried. The problem is it gives the specific equipment along with all other non-specified with matching frenquencies.
SELECT [Main Task table].[Equipment Type], [Main Task table].Frequency
FROM [Main Task table]
WHERE ((([Main Task table].[Equipment Type])=" 9 Volt HSCL (500)") AND (([Main Task table].Frequency)="5 Days")) OR ((([Main Task table].Frequency)="10 Days")) OR ((([Main Task table].Frequency)="20 Days"));
Thanks in advance for any help provided