Hi everyone
I have 5 Update queies that i would like to combine into one if its possible
the five queries i have are these
DueCheckQuery
UPDATE UNEXData SET UNEXData.OVERDUE = "Not Over Due"
WHERE (((UNEXData.duedate)>=Date()));
Due Today
UPDATE UNEXData SET UNEXData.OVERDUE = "Due Today"
WHERE (((UNEXData.DUEDATE)=Date()));
DueNextWeekQuery
UPDATE UNEXData SET UNEXData.OVERDUE = "Due Next Week"
WHERE (((Year([DUEDATE])*53+DatePart("ww",[DUEDATE]))=Year(Date())*53+DatePart("ww",Date())+1));
OverDueQuery
UPDATE UNEXData SET UNEXData.OVERDUE = "OVER DUE"
WHERE (((UNEXData.duedate)<=Date()));
ThisWeekQuery
UPDATE UNEXData SET UNEXData.OVERDUE = "Due This Week"
WHERE (((Year([DUEDATE])*53+DatePart("ww",[DUEDATE]))=Year(Date())*53+DatePart("ww",Date())));This basically changes the text in a feild called "OVERDUE" based on the date of the feild "DUEDATE"
Is it possible to combine all these into a single query? i was thinking about using IIF, but im not sure how to do this
These querys run when my main form opens, if i am able to combine these into a single query am i correct in thinking that their will be a performance gain?
Kind regards
Steve