can you copy and increment numbers in access 2007
can you copy and increment numbers in access 2007
Author
Discussion

tattymarbots

Original Poster:

502 posts

225 months

Monday 15th February 2010
quotequote all
trying to copy numbers in a column and inrement them by 1
cant do it for the life of me

anyone help out
steve

amir_j

3,579 posts

223 months

Monday 15th February 2010
quotequote all
what are you trying to do? copy a list of numbers in and then add 1- if so run an update query.
if additional rows to increase then set data type to autonumber

mouseymousey

2,642 posts

259 months

Monday 15th February 2010
quotequote all
JDMFanYo said:
2 ways

Let's use column A for example

1)
In A1 you have the original value
In A2, place the value =A1+1 (replace A1 with whatever cell you are starting with, it might be E36).
A2 (or whatever cell you chose) can then be copied downwards


2)
When A1 is highlighted, click and drag the little square which appears in the bottom right of the highlighted cell. this doesn't always work, as sometimes just duplicates the entry in 1.

Edited by JDMFanYo on Monday 15th February 17:32
That's Excel, not Access.

Don't know much about Access personally but couldn't you make the field an 'Autonumber' data type, then Access will add 1 to the number every time you do an insert. I think....


JDMFanYo

2,664 posts

197 months

Tuesday 16th February 2010
quotequote all
mouseymousey said:
JDMFanYo said:
2 ways

Let's use column A for example

1)
In A1 you have the original value
In A2, place the value =A1+1 (replace A1 with whatever cell you are starting with, it might be E36).
A2 (or whatever cell you chose) can then be copied downwards

2)
When A1 is highlighted, click and drag the little square which appears in the bottom right of the highlighted cell. this doesn't always work, as sometimes just duplicates the entry in 1.

Edited by JDMFanYo on Monday 15th February 17:32
That's Excel, not Access.

Don't know much about Access personally but couldn't you make the field an 'Autonumber' data type, then Access will add 1 to the number every time you do an insert. I think....
boxedin

Autonumber column it is then

Edited by JDMFanYo on Tuesday 16th February 08:49