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  

I need to subtract5 pallets allready inserted.



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2008, 01:53 PM posted to microsoft.public.access.queries
Marco
external usenet poster
 
Posts: 535
Default I need to subtract5 pallets allready inserted.

Hello. I building a little access database to insert pallets.

I have a problem here.

I need to insert pallets numbers in a table with quantities but I need that
my Insert query only insert pallet number that where not already insert or
that the Total value field is diferent than zero.

Imagine, that my production number 123 has the following pallet number and
quantities:

Pallet Quantity Total
10 100 0
11 150 0
12 150 75

and my production number 456 has the following pallets number:
Pallet Quantity
12 150
10 100
14 150

In this example I need only to insert this:
Pallet Quantity
12 75
14 150

is it possible to do this?

Thanks,
Marco
  #2  
Old July 16th, 2008, 05:10 PM posted to microsoft.public.access.queries
Michel Walsh[_2_]
external usenet poster
 
Posts: 56
Default I need to subtract5 pallets allready inserted.

The example you supplied does not seems clear, at least, it is not for me.

Where the Total columns come from? Is that supposed to be a kind of 'what is
left' when production 123 has been done, completed? If so, would you not
need to ALSO introduce a quantity of 100 for pallet 10 in order to complete
production 456?


Vanderghast, Access MVP


"Marco" wrote in message
...
Hello. I building a little access database to insert pallets.

I have a problem here.

I need to insert pallets numbers in a table with quantities but I need
that
my Insert query only insert pallet number that where not already insert or
that the Total value field is diferent than zero.

Imagine, that my production number 123 has the following pallet number and
quantities:

Pallet Quantity Total
10 100 0
11 150 0
12 150 75

and my production number 456 has the following pallets number:
Pallet Quantity
12 150
10 100
14 150

In this example I need only to insert this:
Pallet Quantity
12 75
14 150

is it possible to do this?

Thanks,
Marco


  #3  
Old July 16th, 2008, 05:31 PM posted to microsoft.public.access.queries
Marco
external usenet poster
 
Posts: 535
Default I need to subtract pallets allready inserted.

Hi.

What I want is to not include the pallets that were already shipped. The
Total column is the result of Pallet Quantity and Pallet Quantity Sent.

if the Total is not zero, that means that I don't sent all the quantity of
that pallet.

If it is Zero, means that all quantity was already sent.

Imagine, if I'm adding Product Lot A035, and that Lot has these pallets:
10
11
12
13

and if in previous expedition I sent the pallet 10 of lot A035 I need that
on this second expedition it appears me only these pallets:
11
12
13


I'm more clear now?

Thanks,
Marco






"Michel Walsh" wrote:

The example you supplied does not seems clear, at least, it is not for me.

Where the Total columns come from? Is that supposed to be a kind of 'what is
left' when production 123 has been done, completed? If so, would you not
need to ALSO introduce a quantity of 100 for pallet 10 in order to complete
production 456?


Vanderghast, Access MVP


"Marco" wrote in message
...
Hello. I building a little access database to insert pallets.

I have a problem here.

I need to insert pallets numbers in a table with quantities but I need
that
my Insert query only insert pallet number that where not already insert or
that the Total value field is diferent than zero.

Imagine, that my production number 123 has the following pallet number and
quantities:

Pallet Quantity Total
10 100 0
11 150 0
12 150 75

and my production number 456 has the following pallets number:
Pallet Quantity
12 150
10 100
14 150

In this example I need only to insert this:
Pallet Quantity
12 75
14 150

is it possible to do this?

Thanks,
Marco


  #4  
Old July 16th, 2008, 06:11 PM posted to microsoft.public.access.queries
Bob Barrows [MVP]
external usenet poster
 
Posts: 441
Default I need to subtract5 pallets allready inserted.

Marco wrote:
Hello. I building a little access database to insert pallets.

I have a problem here.

I need to insert pallets numbers in a table with quantities but I
need that my Insert query only insert pallet number that where not
already insert or that the Total value field is diferent than zero.

Imagine, that my production number 123 has the following pallet
number and quantities:

Pallet Quantity Total
10 100 0
11 150 0
12 150 75

and my production number 456 has the following pallets number:
Pallet Quantity
12 150
10 100
14 150

In this example I need only to insert this:
Pallet Quantity
12 75
14 150

Please, name these tables and _show_ us what the first table is
supposed to look like after this "insert" occurs. For example, you
showed us this record in the first table:
12 150 75

Then you told us you want to insert this record:
12 75

So, after that insert, is the first table really supposed to wind up
with two records for pallet 12?
12 150 75
12 75

Or do you actually intend that an update of the original record in the
first table was supposed to occur? In which case, what should that
record look like?



--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 




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 01:01 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.