Jump to content
By fans, for fans. By fans, for fans. By fans, for fans.

Recommended Posts

Posted

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 blank

Field 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.treaty

FROM Table1

WHERE (((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…)

Posted

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

Posted (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 by ScouseMouse

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...