Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
MillianMan
Starting Member
5 Posts |
Posted - 2012-01-12 : 09:10:11
|
I am trying to run the following query in Access 2010 but with no luckUPDATE Application INNER JOIN Points ON Application.ApplicationID = Points.ApplicationID SET Points.Points = 4, Points.Answer = '4'WHERE ((([Application].[StatusID])=1 Or ([Application].[StatusID])=2 Or ([Application].[StatusID])=3) AND (([Application].[TotalPoints])>6) AND ((Points.QuestionID)=46) AND Exists(SELECT Points.ApplicationIDFROM PointsWHERE Points.QuestionID =1 And Points.Points >=1 )AND Exists(SELECT Points.ApplicationIDFROM PointsWHERE Points.QuestionID =14 And Points.Points >=6 ))It doesnt't error but It doesnt workFor Example ApplicationID 4 has the following points:Question 1: 1Question 14: 0However it still allocated 4 poitns to Question 46 (which is incorrect)However, ApplicationID 12 has the following points:Question 1: 0Question 14: 6However it still allocated 4 poitns to Question 46 (which is incorrect)Does that nmake any sence to anyone?Any pointers?Cheers |
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|