sircular effect

K

Karen

I have to use number 1 -14 in a Column . When reaching 14, numbering must
start at 1 again. Can you please help me with this?
 
D

Duane Hookom

You can use a variation of a ranking column with Mod to get this type of
numbering. Here is a query from the Northwind MDB where orders are numbered
1-5. You should be able to convert this for use in your application. If you
can't, come back with significant table and field names as well as what
field/expression determines the order.

SELECT (Select Count(*) FROM Orders O WHERE O.OrderID<Orders.OrderID) Mod
5+1 AS ColumnID, Orders.*
FROM Orders
ORDER BY Orders.OrderID;
 

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