J
jeanhurtado
Hi, I'm Jean writing about the weird issue. I have 2 tables one is
called "CostTable" and the other one "CycleCount". I have create a
query called "Cycle Count Report", this query is created because I
need to join the 2 tables above mentioned. The query has several
caculated fields and one has a filter "Ticket Number" to only shows
records wich contains not null values. I have a form "Cycle Count
Entry System" that is use is for Data Entry porpouses when I try to
enter data in the form the error comes "The Recordset is Not
Updateable ". I have the query SQL code if you need it. Can you help
me I have try searching in internet but no so clear to me. Thanks for
yours efforts to help me.
Sql code of the query:
***********************************************************************************************************************************
SELECT CycleCount.[Ticket Number], CycleCount.[Part Number],
COSTTABLE.MAT1000, COSTTABLE.LAB1000, ([COSTTABLE]![LAB1000]+
[COSTTABLE]![MAT1000])/1000 AS [UNIT COST], CycleCount.ONHAND,
CycleCount.AVAILABLE, CycleCount.[RECOUNT QTY], IIf([RECOUNT
QTY]<=[ONHAND] And [RECOUNT QTY]>=[AVAILABLE],0,IIf([RECOUNT
QTY]>[ONHAND],[RECOUNT QTY]-[ONHAND],[RECOUNT QTY]-[AVAILABLE])) AS
VAR, IIf([ONHAND]=0,0,[VAR]/[ONHAND]) AS [VAR %], ([VAR]*[UNIT COST])
AS [VAR $], IIf(Abs([VAR %])>0.0075 Or Abs([VAR $])>50,"True","False")
AS ADJUSTMENT, ([RECOUNT QTY]*[UNIT COST]) AS [RECOUNT $], IIf([VAR
$]>=0 And [ADJUSTMENT]="True",[VAR $],0) AS [PLUS ADJ $], IIf([VAR
$]<0 And [ADJUSTMENT]="True",[VAR $],0) AS [MINUS ADJ $],
CycleCount.TICKETDATE, CycleCount.[UNIT OF MEASURE], CycleCount.ABC
FROM COSTTABLE INNER JOIN CycleCount ON COSTTABLE.[Part Number] =
CycleCount.[Part Number]
WHERE (((([CycleCount].[Ticket Number])=[Ticket Number]) Is Not Null))
ORDER BY CycleCount.[Ticket Number];
***********************************************************************************************************************************
If you need more info just let me know. Thanks
JC
called "CostTable" and the other one "CycleCount". I have create a
query called "Cycle Count Report", this query is created because I
need to join the 2 tables above mentioned. The query has several
caculated fields and one has a filter "Ticket Number" to only shows
records wich contains not null values. I have a form "Cycle Count
Entry System" that is use is for Data Entry porpouses when I try to
enter data in the form the error comes "The Recordset is Not
Updateable ". I have the query SQL code if you need it. Can you help
me I have try searching in internet but no so clear to me. Thanks for
yours efforts to help me.
Sql code of the query:
***********************************************************************************************************************************
SELECT CycleCount.[Ticket Number], CycleCount.[Part Number],
COSTTABLE.MAT1000, COSTTABLE.LAB1000, ([COSTTABLE]![LAB1000]+
[COSTTABLE]![MAT1000])/1000 AS [UNIT COST], CycleCount.ONHAND,
CycleCount.AVAILABLE, CycleCount.[RECOUNT QTY], IIf([RECOUNT
QTY]<=[ONHAND] And [RECOUNT QTY]>=[AVAILABLE],0,IIf([RECOUNT
QTY]>[ONHAND],[RECOUNT QTY]-[ONHAND],[RECOUNT QTY]-[AVAILABLE])) AS
VAR, IIf([ONHAND]=0,0,[VAR]/[ONHAND]) AS [VAR %], ([VAR]*[UNIT COST])
AS [VAR $], IIf(Abs([VAR %])>0.0075 Or Abs([VAR $])>50,"True","False")
AS ADJUSTMENT, ([RECOUNT QTY]*[UNIT COST]) AS [RECOUNT $], IIf([VAR
$]>=0 And [ADJUSTMENT]="True",[VAR $],0) AS [PLUS ADJ $], IIf([VAR
$]<0 And [ADJUSTMENT]="True",[VAR $],0) AS [MINUS ADJ $],
CycleCount.TICKETDATE, CycleCount.[UNIT OF MEASURE], CycleCount.ABC
FROM COSTTABLE INNER JOIN CycleCount ON COSTTABLE.[Part Number] =
CycleCount.[Part Number]
WHERE (((([CycleCount].[Ticket Number])=[Ticket Number]) Is Not Null))
ORDER BY CycleCount.[Ticket Number];
***********************************************************************************************************************************
If you need more info just let me know. Thanks
JC