Need help writing a query to pull data with six zeros on the end

G

Guest

I have a large data set of nunbers of varying length (between 6 and 20
digits). I would like to pull all of the numbers that end in 6 zeros,
regardless of the length of the number.
 
T

Todd Shillam

Create a custom expression:

Custom: Right([FieldName],6)
Criteria: "000000"

1. Open your query in design view.
2. Go to the end (find a blank field).
3. In the Field block, enter the expression above (change field name).
4. In the Criteria block below, enter the criteria listed above (include the
quotes).

That should do the trick.

Best regards,

Todd Shillam
 
T

Tom Lake

Todd Shillam said:
Create a custom expression:

Custom: Right([FieldName],6)
Criteria: "000000"

Or put the following in the Criteria row of the FieldName column:

Like "*000000"

Tom Lake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top