accessturtle
XL Guru but new in XS
- Local time
- Today, 01:08
- Joined
- Feb 26, 2010
- Messages
- 12
Hello
i have 11 diffrent queries for the same table that i run on a daily basis to update, i think there has to be a way of combining them all together. below are an examples of 2 queries that i want to combine.
Query1
UPDATE test SET test.Agent = "Balloon"
WHERE (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Like "c*") AND ((test.State)<>"OH")) OR (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Between "da?*" And "dq?*") AND ((test.State)<>"OH"));
Query2
UPDATE test SET test.Agent = "Balloon"
WHERE (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Like "z*") AND ((test.State)<>"OH")) OR (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Between "aa?*" And "aq?*") AND ((test.State)<>"OH"));
Thank you in advance for help
Access Turtle
i have 11 diffrent queries for the same table that i run on a daily basis to update, i think there has to be a way of combining them all together. below are an examples of 2 queries that i want to combine.
Query1
UPDATE test SET test.Agent = "Balloon"
WHERE (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Like "c*") AND ((test.State)<>"OH")) OR (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Between "da?*" And "dq?*") AND ((test.State)<>"OH"));
Query2
UPDATE test SET test.Agent = "Balloon"
WHERE (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Like "z*") AND ((test.State)<>"OH")) OR (((test.Agent) Is Null) AND ((test.PaymentType) Not In ("Blue","Red")) AND ((test.Last) Between "aa?*" And "aq?*") AND ((test.State)<>"OH"));
Thank you in advance for help
Access Turtle