Solved

GL Accounts Create Table Query

Posted on 2013-06-03
2
362 Views
Last Modified: 2013-06-03
I have a table that has about 700,000 records and I need to be create a query to create another table with most of the records with the exception of some..

I have a text field that has Accounts and the accounts are as follow:

example of the format is --> 2090-253-00-01.

So I have 4 characters then a '-" another 3 and "-" then 2 and "-" then another 2 and "-"

I did the query as follow: not like "????-253-02-00" or not like "????-253-03-00"

I want to all the records except these that ends in -253-02-00 and -253-03-00 to go to a new table.

when I do that and display the results before I run the query I see that all the records are still being displayed..

Anyone can tell me what I am doing wrong???
0
Comment
Question by:TonyEF
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39217301
Use AND instead of OR.

Also use # to specifically deal with numeric digits.  ? can be any character.

 not like "####-253-02-00" AND not like "####-253-03-00"
0
 

Author Closing Comment

by:TonyEF
ID: 39217309
Thank you...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now