MarcoPerez21
Programmer
Hey guys here's an error I'm receiving when I run my "Master" query: Circular Reference caused by 'qry_salesinput_master' any suggestions and insight would be appreciated.
this is the sql to the query:
I'm stumped and pulling my hair out.
Marco
this is the sql to the query:
Code:
PARAMETERS [Enter Beginning Date] DateTime;
SELECT qry_Master_sample.qry_salesinput_master.Period, qry_Master_sample.qry_salesinput_master.Week, qry_Master_sample.qry_salesinput_day1.Day, qry_Master_sample.qry_salesinput_day1.[Store Am sales], qry_Master_sample.qry_salesinput_day1.[Store Pm sales], qry_Master_sample.qry_salesinput_day1.[Store Praline Sales], qry_Master_sample.qry_salesinput_day1.[Store Merch Sales], qry_Master_sample.qry_salesinput_day1.[Store Postage Sales], qry_Master_sample.qry_salesinput_day1.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day1.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day1.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day1.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day1.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day1.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day1.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day1.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day1.[Planned Store hours], qry_Master_sample.qry_salesinput_day1.[Actual Store hours], qry_Master_sample.qry_salesinput_day1.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day1.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day1.[Overtime Dollars], qry_Master_sample.qry_salesinput_day1.[Training Dollars], qry_Master_sample.qry_salesinput_day1.[Am # of Tickets], qry_Master_sample.qry_salesinput_day1.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day1.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day2.Day, qry_Master_sample.qry_salesinput_day2.[Store Am sales], qry_Master_sample.qry_salesinput_day2.[Store Pm sales], qry_Master_sample.qry_salesinput_day2.[Store Praline Sales], qry_Master_sample.qry_salesinput_day2.[Store Merch Sales], qry_Master_sample.qry_salesinput_day2.[Store Postage Sales], qry_Master_sample.qry_salesinput_day2.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day2.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day2.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day2.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day2.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day2.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day2.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day2.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day2.[Planned Store hours], qry_Master_sample.qry_salesinput_day2.[Actual Store hours], qry_Master_sample.qry_salesinput_day2.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day2.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day2.[Overtime Dollars], qry_Master_sample.qry_salesinput_day2.[Training Dollars], qry_Master_sample.qry_salesinput_day2.[Am # of Tickets], qry_Master_sample.qry_salesinput_day2.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day2.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day3.Day, qry_Master_sample.qry_salesinput_day3.[Store Am sales], qry_Master_sample.qry_salesinput_day3.[Store Pm sales], qry_Master_sample.qry_salesinput_day3.[Store Praline Sales], qry_Master_sample.qry_salesinput_day3.[Store Merch Sales], qry_Master_sample.qry_salesinput_day3.[Store Postage Sales], qry_Master_sample.qry_salesinput_day3.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day3.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day3.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day3.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day3.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day3.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day3.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day3.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day3.[Planned Store hours], qry_Master_sample.qry_salesinput_day3.[Actual Store hours], qry_Master_sample.qry_salesinput_day3.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day3.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day3.[Overtime Dollars], qry_Master_sample.qry_salesinput_day3.[Training Dollars], qry_Master_sample.qry_salesinput_day3.[Am # of Tickets], qry_Master_sample.qry_salesinput_day3.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day3.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day4.Day, qry_Master_sample.qry_salesinput_day4.[Store Am sales], qry_Master_sample.qry_salesinput_day4.[Store Pm sales], qry_Master_sample.qry_salesinput_day4.[Store Praline Sales], qry_Master_sample.qry_salesinput_day4.[Store Merch Sales], qry_Master_sample.qry_salesinput_day4.[Store Postage Sales], qry_Master_sample.qry_salesinput_day4.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day4.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day4.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day4.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day4.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day4.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day4.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day4.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day4.[Planned Store hours], qry_Master_sample.qry_salesinput_day4.[Actual Store hours], qry_Master_sample.qry_salesinput_day4.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day4.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day4.[Overtime Dollars], qry_Master_sample.qry_salesinput_day4.[Training Dollars], qry_Master_sample.qry_salesinput_day4.[Am # of Tickets], qry_Master_sample.qry_salesinput_day4.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day4.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day5.Day, qry_Master_sample.qry_salesinput_day5.[Store Am sales], qry_Master_sample.qry_salesinput_day5.[Store Pm sales], qry_Master_sample.qry_salesinput_day5.[Store Praline Sales], qry_Master_sample.qry_salesinput_day5.[Store Merch Sales], qry_Master_sample.qry_salesinput_day5.[Store Postage Sales], qry_Master_sample.qry_salesinput_day5.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day5.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day5.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day5.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day5.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day5.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day5.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day5.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day5.[Planned Store hours], qry_Master_sample.qry_salesinput_day5.[Actual Store hours], qry_Master_sample.qry_salesinput_day5.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day5.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day5.[Overtime Dollars], qry_Master_sample.qry_salesinput_day5.[Training Dollars], qry_Master_sample.qry_salesinput_day5.[Am # of Tickets], qry_Master_sample.qry_salesinput_day5.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day5.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day6.Day, qry_Master_sample.qry_salesinput_day6.[Store Am sales], qry_Master_sample.qry_salesinput_day6.[Store Pm sales], qry_Master_sample.qry_salesinput_day6.[Store Praline Sales], qry_Master_sample.qry_salesinput_day6.[Store Merch Sales], qry_Master_sample.qry_salesinput_day6.[Store Postage Sales], qry_Master_sample.qry_salesinput_day6.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day6.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day6.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day6.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day6.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day6.[Wholesale Merch Sales], qry_Master_sample.Expr1129, qry_Master_sample.qry_salesinput_day6.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day6.[Planned Store hours], qry_Master_sample.qry_salesinput_day6.[Actual Store hours], qry_Master_sample.qry_salesinput_day6.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day6.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day6.[Overtime Dollars], qry_Master_sample.qry_salesinput_day6.[Training Dollars], qry_Master_sample.qry_salesinput_day6.[Am # of Tickets], qry_Master_sample.qry_salesinput_day6.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day6.[Peak Ticket Hour], qry_Master_sample.qry_salesinput_day7.Day, qry_Master_sample.qry_salesinput_day7.[Store Am sales], qry_Master_sample.qry_salesinput_day7.[Store Pm sales], qry_Master_sample.qry_salesinput_day7.[Store Praline Sales], qry_Master_sample.qry_salesinput_day7.[Store Merch Sales], qry_Master_sample.qry_salesinput_day7.[Store Postage Sales], qry_Master_sample.qry_salesinput_day7.[MailOrder Praline Sales], qry_Master_sample.qry_salesinput_day7.[MailOrder Merch Sales], qry_Master_sample.qry_salesinput_day7.[MailOrder Postage Sales], qry_Master_sample.qry_salesinput_day7.[MailOrder Total Sales], qry_Master_sample.qry_salesinput_day7.[Wholesale Praline Sales], qry_Master_sample.qry_salesinput_day7.[Wholesale Merch Sales], qry_Master_sample.qry_salesinput_day7.[Wholesale Postage Sales], qry_Master_sample.qry_salesinput_day7.[Wholesale Total Sales], qry_Master_sample.qry_salesinput_day7.[Planned Store hours], qry_Master_sample.qry_salesinput_day7.[Actual Store hours], qry_Master_sample.qry_salesinput_day7.[Planned Store Dollars], qry_Master_sample.qry_salesinput_day7.[Actual Store Dollars], qry_Master_sample.qry_salesinput_day7.[Overtime Dollars], qry_Master_sample.qry_salesinput_day7.[Training Dollars], qry_Master_sample.qry_salesinput_day7.[Am # of Tickets], qry_Master_sample.qry_salesinput_day7.[Pm # of Tickets], qry_Master_sample.qry_salesinput_day7.[Peak Ticket Hour], qry_Master_sample.Qry_LYsalesinput_Master.Period, qry_Master_sample.Qry_LYsalesinput_Master.Week, qry_Master_sample.qry_LYsalesinput_day1.Day, qry_Master_sample.qry_LYsalesinput_day1.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day1.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day1.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day1.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day1.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day1.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day2.Day, qry_Master_sample.qry_LYsalesinput_day2.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day2.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day2.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day2.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day2.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day2.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day3.Day, qry_Master_sample.qry_LYsalesinput_day3.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day3.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day3.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day3.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day3.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day3.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day4.Day, qry_Master_sample.qry_LYsalesinput_day4.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day4.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day4.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day4.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day4.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day4.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day5.Day, qry_Master_sample.qry_LYsalesinput_day5.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day5.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day5.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day5.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day5.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day5.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day6.Day, qry_Master_sample.qry_LYsalesinput_day6.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day6.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day6.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day6.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day6.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day6.[Pm # of Tickets], qry_Master_sample.qry_LYsalesinput_day7.Day, qry_Master_sample.qry_LYsalesinput_day7.[Store Am sales], qry_Master_sample.qry_LYsalesinput_day7.[Store Pm sales], qry_Master_sample.qry_LYsalesinput_day7.[MailOrder Total Sales], qry_Master_sample.qry_LYsalesinput_day7.[Wholesale Total Sales], qry_Master_sample.qry_LYsalesinput_day7.[Am # of Tickets], qry_Master_sample.qry_LYsalesinput_day7.[Pm # of Tickets]
FROM qry_Master_sample;>
Marco