PC Review


Reply
Thread Tools Rate Thread

add/copy a record multiple times

 
 
hansorian
Guest
Posts: n/a
 
      12th Oct 2009
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
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      13th Oct 2009
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" wrote:

> 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

 
Reply With Quote
 
hansorian
Guest
Posts: n/a
 
      13th Oct 2009
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" wrote:

> 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" wrote:
>
> > 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

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      13th Oct 2009
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" wrote:

> 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" wrote:
>
> > 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" wrote:
> >
> > > 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Append a record multiple times to a new table IncentGirl Microsoft Access Queries 1 1st May 2008 12:26 PM
Record listed multiple times =?Utf-8?B?SlIgSGVzdGVy?= Microsoft Access Queries 5 30th Aug 2007 09:52 PM
query repeats first record multiple times =?Utf-8?B?TGFycnlXZXN0TUNTRA==?= Microsoft Access Queries 0 17th Jun 2005 12:05 AM
Forcing printing of a record multiple times MustBNuts via AccessMonster.com Microsoft Access Reports 6 26th Jan 2005 10:48 PM
Printing a record multiple times =?Utf-8?B?UG93ZXJTaGFjaw==?= Microsoft Access Reports 2 16th Jul 2004 12:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 PM.