A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Recieving Inventory Query



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 04:27 PM posted to microsoft.public.access.queries
Ernst Guckel
external usenet poster
 
Posts: 50
Default Recieving Inventory Query

Hello,

I'm pretty sure we are approaching this correctly but not sure how to do
this: We have a purchase order database where we enter all our inventory
purchases. The problem is that each line item in a purchase order is a
generic inventory item. I want to take these generic items and "Recieve into
Inventory" so that they become owned assets. A simple insert into query
should do the trick but there is one problem that I cannot work out...

If the purchase order says we bought 20 laptops then the insert query needs
to insert 20 new assets into the tblAssets.

EX:

PO 1001
1 Monitors
3 Keyboards
22 Laptops

The query needs to create 26 new records... Any help would be great...

Thanks,
Ernst.

  #2  
Old May 4th, 2010, 05:13 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Recieving Inventory Query

You will need to do one line item at a time. Use a Cartesian effect append
query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Create the append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![UnitsReceived]

Include the other necessary information for the individual item. Some
information will need to be added later such as bar code identification and
serial numbers.

--
Build a little, test a little.


"Ernst Guckel" wrote:

Hello,

I'm pretty sure we are approaching this correctly but not sure how to do
this: We have a purchase order database where we enter all our inventory
purchases. The problem is that each line item in a purchase order is a
generic inventory item. I want to take these generic items and "Recieve into
Inventory" so that they become owned assets. A simple insert into query
should do the trick but there is one problem that I cannot work out...

If the purchase order says we bought 20 laptops then the insert query needs
to insert 20 new assets into the tblAssets.

EX:

PO 1001
1 Monitors
3 Keyboards
22 Laptops

The query needs to create 26 new records... Any help would be great...

Thanks,
Ernst.

  #3  
Old May 4th, 2010, 05:57 PM posted to microsoft.public.access.queries
Ernst Guckel
external usenet poster
 
Posts: 50
Default Recieving Inventory Query

This is wonderful. I understand that this will process only one line at a
time but is there a way to get it to do all lines? or do i need to look
through each line and do the same?

Ernst.

"KARL DEWEY" wrote:

You will need to do one line item at a time. Use a Cartesian effect append
query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Create the append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![UnitsReceived]

Include the other necessary information for the individual item. Some
information will need to be added later such as bar code identification and
serial numbers.

--
Build a little, test a little.


"Ernst Guckel" wrote:

Hello,

I'm pretty sure we are approaching this correctly but not sure how to do
this: We have a purchase order database where we enter all our inventory
purchases. The problem is that each line item in a purchase order is a
generic inventory item. I want to take these generic items and "Recieve into
Inventory" so that they become owned assets. A simple insert into query
should do the trick but there is one problem that I cannot work out...

If the purchase order says we bought 20 laptops then the insert query needs
to insert 20 new assets into the tblAssets.

EX:

PO 1001
1 Monitors
3 Keyboards
22 Laptops

The query needs to create 26 new records... Any help would be great...

Thanks,
Ernst.

  #4  
Old May 4th, 2010, 07:04 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Recieving Inventory Query

You will not know how many lines when you build the form.

An alternate method would be to use a table to load line items that would be
deleted following the run. These would be entered in the subform datasheet
view.

--
Build a little, test a little.


"Ernst Guckel" wrote:

This is wonderful. I understand that this will process only one line at a
time but is there a way to get it to do all lines? or do i need to look
through each line and do the same?

Ernst.

"KARL DEWEY" wrote:

You will need to do one line item at a time. Use a Cartesian effect append
query.
Creacte a table named CountNumber with number field name CountNUM containing
0 (zero) through your maximum.
Create the append query, add the CountNumber table, drag the CountNUM field
to the FIELD row, add criteria --
Between 1 AND [Forms]![YourFormName]![UnitsReceived]

Include the other necessary information for the individual item. Some
information will need to be added later such as bar code identification and
serial numbers.

--
Build a little, test a little.


"Ernst Guckel" wrote:

Hello,

I'm pretty sure we are approaching this correctly but not sure how to do
this: We have a purchase order database where we enter all our inventory
purchases. The problem is that each line item in a purchase order is a
generic inventory item. I want to take these generic items and "Recieve into
Inventory" so that they become owned assets. A simple insert into query
should do the trick but there is one problem that I cannot work out...

If the purchase order says we bought 20 laptops then the insert query needs
to insert 20 new assets into the tblAssets.

EX:

PO 1001
1 Monitors
3 Keyboards
22 Laptops

The query needs to create 26 new records... Any help would be great...

Thanks,
Ernst.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.