V
vandy
Hi All,
I have a scenario where an item is reserved for a project when the item is
used up it has to be updated to a free status so that it can be used by other
projects.
With the help of the group i was able to update the table and move data of
free items to another table called rawmaterial deleting the corresponding
records from the source table. Right now i am trying to accomplish the same
task without appending or deleting records.
I want to check if hte qoh =0 . if it is i have a feild in tbltransaction
called status .
if qoh=0 than update status to Available and update project no to null.
this way i should be able to come up with a report listing items which are
available.
problem:
A msg stating cannot have aggregate function in where clause
(sum[units]*[type])=0)
UPDATE tblprojects RIGHT JOIN (tblitems INNER JOIN tbltransactions ON
tblitems.ItemID = tbltransactions.TranItemID) ON tblprojects.ProjectID =
tbltransactions.PID SET tblprojects.Pno = Null, tbltransactions.status =
"Available"
WHERE (((Sum([UNITS]*[TYPE]))=0));
How to update the status as available and pno as null for criteria qoh=0
what does the message mean and how else can i query to get the desired
results.
thanks for you help in advance.
I have a scenario where an item is reserved for a project when the item is
used up it has to be updated to a free status so that it can be used by other
projects.
With the help of the group i was able to update the table and move data of
free items to another table called rawmaterial deleting the corresponding
records from the source table. Right now i am trying to accomplish the same
task without appending or deleting records.
I want to check if hte qoh =0 . if it is i have a feild in tbltransaction
called status .
if qoh=0 than update status to Available and update project no to null.
this way i should be able to come up with a report listing items which are
available.
problem:
A msg stating cannot have aggregate function in where clause
(sum[units]*[type])=0)
UPDATE tblprojects RIGHT JOIN (tblitems INNER JOIN tbltransactions ON
tblitems.ItemID = tbltransactions.TranItemID) ON tblprojects.ProjectID =
tbltransactions.PID SET tblprojects.Pno = Null, tbltransactions.status =
"Available"
WHERE (((Sum([UNITS]*[TYPE]))=0));
How to update the status as available and pno as null for criteria qoh=0
what does the message mean and how else can i query to get the desired
results.
thanks for you help in advance.