Re: Query to duplicate last entry
- From: "Steve" <sorry@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 15:12:21 GMT
I don't know what your "ID" is but you ought to be using autonumber. What is
Version? If you look at the results you want, you are duplication names, IDs
and Versions. That's not a correct design for a table!
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@xxxxxxxxxxxxxxx
"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E4113731-06C6-4DCC-A31A-65FB9D8360C1@xxxxxxxxxxxxxxxx
Steve,
My tabe is correct? not sure I follow (why will it be incorrect?)
ID Version Name Salary
2 1 Bob 100
3 1 John 90
4 1 Dan 95
I need to be able to add a new row for any id, duplicating the entries ,
just pushing the Version number one up.
So if the parameter id ID 3
A new row will be created making my table looks like
ID Version Name Salary
2 1 Bob 100
3 1 John 90
4 1 Dan 95
3 2 John 90
Thanks
"Steve" wrote:
Dan,
Your table looks to be incorrect. Before you proceed further, why don't
you
describe what you are trying to do in your database and we can help you
get
on the right path.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@xxxxxxxxxxxxxxx
"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7C1A98A8-4B55-4540-9365-25E5A6688730@xxxxxxxxxxxxxxxx
Hi,
I need to duplicate the last entry in a table (except one field).
For example if my table is (my key is a combination of ID and Version)
ID Version Name Salary
2 1 Bob 100
3 1 John 90
4 1 Dan 95
I will need to add an entry of
4 2 Dan 95
Any idea what query/sql I should use.
Many thanks,
Dan
.
- Follow-Ups:
- Re: Query to duplicate last entry
- From: Dan
- Re: Query to duplicate last entry
- References:
- Re: Query to duplicate last entry
- From: Steve
- Re: Query to duplicate last entry
- Prev by Date: RE: Using a textbox as a criteria for a query
- Next by Date: Re: Field from table in same table
- Previous by thread: Re: Query to duplicate last entry
- Next by thread: Re: Query to duplicate last entry
- Index(es):
Relevant Pages
|