SkippyjonJones Posted May 12, 2011 Posted May 12, 2011 I have a table and want to do an update query on one of the fields. Lets say the field one (assignment) currently has only 2 possible entry’s – “A” or blankField two (treaty) has a load of different data but I’m only interested in the ones that have a particular entry (“831”)I want to run a query where field two is “831” and field one is not like “A”. So I run the following (currently showing as a select query) SELECT Table1.assignment, Table1.treatyFROM Table1WHERE (((Table1.assignment) Not Like "a") AND ((Table1.treaty) Like "831")); Why the frig won’t it work? If I run just one criteria or the other its fine. It works if both are LIKE statements but not if one is a NOT LIKE statement. Ideas?Using access 2002 (yeah – I know…)
Mike Posted May 12, 2011 Posted May 12, 2011 This post is not viewable to guests. You can sign in to your account at the login page here If you do not have an account then you can register here
Nebraska Red Posted May 12, 2011 Posted May 12, 2011 This post is not viewable to guests. You can sign in to your account at the login page here If you do not have an account then you can register here
KentyRed Posted May 12, 2011 Posted May 12, 2011 (edited) This post is not viewable to guests. You can sign in to your account at the login page here If you do not have an account then you can register here Edited May 12, 2011 by ScouseMouse
carrafan Posted May 12, 2011 Posted May 12, 2011 This post is not viewable to guests. You can sign in to your account at the login page here If you do not have an account then you can register here
SkippyjonJones Posted May 12, 2011 Author Posted May 12, 2011 This post is not viewable to guests. You can sign in to your account at the login page here If you do not have an account then you can register here
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now