increment?

Hi

I am wondering if anyone can assist with this:

I have two models, one is task and the other is examples. I have developed an application that once you create a new task you are given 5 example fields.

What I need is when a user wants to create a new task, he/she is given a list of five unique numbers. They can give their examples to each of these numbers, so: 1 example1 2 example 2 3 ... 4 5

When the next task (task 2) is created, the unique numbers are incremented so it will be

6 example xx 7 ... 8 9 10

Can anyone assist into how I can do this operation.

thanks Mark

You could have another table in the database that has one record and one field, containing the next number to use.

Colin