add/copy a record multiple times

H

hansorian

hi
I have a table with part number and quantity. I want to apply a unique
number to each of the quantity and have a table with multiple lines the same
except for the unique number. Eg Part is 1234 qty 3 so i want 3 rows creating
with a unique number. I need to do this as a query or macro/query etc.... any
ideas?


Regards

IAn
 
K

KARL DEWEY

You can use a Cartesian effect append query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Use a form to enter the number of records and the Part number.
Create your append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![NumRecordsTextBox]
 
H

hansorian

hi
i dont quite understand what you are saying..... however i shall try to
digest it and see if it answers my problem... thanks in advance.

i need the table to create itself from just a part number and qty then to
create the rows with perhaps other info from another table aswell... with
what you suggest will that happen?

thanks

Ian

KARL DEWEY said:
You can use a Cartesian effect append query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Use a form to enter the number of records and the Part number.
Create your append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![NumRecordsTextBox]

--
Build a little, test a little.


hansorian said:
hi
I have a table with part number and quantity. I want to apply a unique
number to each of the quantity and have a table with multiple lines the same
except for the unique number. Eg Part is 1234 qty 3 so i want 3 rows creating
with a unique number. I need to do this as a query or macro/query etc.... any
ideas?


Regards

IAn
 
K

KARL DEWEY

Yes, but make sure you use criteria to append the correct part number and qty.

If using a record from within the table then along with the criteria stated
above use this --
Between 1 AND [QTY]

--
Build a little, test a little.


hansorian said:
hi
i dont quite understand what you are saying..... however i shall try to
digest it and see if it answers my problem... thanks in advance.

i need the table to create itself from just a part number and qty then to
create the rows with perhaps other info from another table aswell... with
what you suggest will that happen?

thanks

Ian

KARL DEWEY said:
You can use a Cartesian effect append query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Use a form to enter the number of records and the Part number.
Create your append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![NumRecordsTextBox]

--
Build a little, test a little.


hansorian said:
hi
I have a table with part number and quantity. I want to apply a unique
number to each of the quantity and have a table with multiple lines the same
except for the unique number. Eg Part is 1234 qty 3 so i want 3 rows creating
with a unique number. I need to do this as a query or macro/query etc.... any
ideas?


Regards

IAn
 

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