I'm going to assume this is in a table and has a field name as being in text
format (leading zeros). In your query under the field name for criteria use
Between "000001" And "007893" should give you a list of everything between
them. If Number probably >=1 And <=7803 would do it.
Hey Joe,
Here's my problem. I have two fields. One contains 000001 and the other
contains 007893. I would love to use access to maybe run a query to generate
sequential values 000002, 000003, etc up until I reach 007893. This is real
urgent. Access has the total function where yo can group data, but I want to
list values between a range.
Hey Joe,
Here's my problem. I have two fields. One contains 000001 and the
other contains 007893. I would love to use access to maybe run a
query to generate sequential values 000002, 000003, etc up until I
reach 007893. This is real urgent. Access has the total function
where yo can group data, but I want to list values between a range.
Taking 1) for example, I need to generate the list of numbers between
0000001 and 0007898
Taking 2) for example, I need to generate the list of numbers between
0000001 and 0001822
I'm working on a lot of files so I need a way to automate this, possibly by
running a query in access to make the process easier.
Here's my problem. I have two fields. One contains 000001 and the other
contains 007893. I would love to use access to maybe run a query to generate
sequential values 000002, 000003, etc up until I reach 007893. This is real
urgent. Access has the total function where yo can group data, but I want to
list values between a range.
You'll need an auxiliary Table to do this. I'd just create a table
named Num, with one Long Integer field with values from 1 through
1000000 (or the largest number you'll ever need - you can use Excel to
get 1 through 65536 using Fill-Down, and copy and paste).
Create a Query by adding your table and Num to a query, with NO join
line. If your two fields are named Start and End, put a criterion on N
of
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.