This is a problem that I was having trouble with last spring, solved to a workable degree, but now its back.
I have a table with the following fields:
Dkt_Num,Character,8 (user entered - no auto increment)
Rate,Character,1 (entered from simple list w/ choice of "2" or "Y")
Op_Type,Character,3 (entered from simple list w/ choice of MR, WUP or RUN)
*Oper_Id,Character,8 (filled in by lookup from related table of press operations)
*Descrip,Character,30(filled in by lookup from related table of press operations)
Press_Notes,Memo,10 (user entered)
Emp_Id,Character,6 (filled in by lookup from employees table)
Chits,Numeric,6,0 (user entered)
Total_Pcs,Numeric,8,0(user entered)
Pcs_Perhr,Numeric,8,0(calc'ed - (60/(CHITS*6))*TOTAL_PCS)
*Cost,Numeric,10,2 (conditional fill with value from related table of press ops)
(the 3 fields with *'s are filled in one auto popup lookup when the user gets to the Oper_ID field and makes a choice of a press operation)
Here are the 8 lines from the Source/Fill/Display/Width/Condition browse in the Field Rules dialog that determines what values get put into the Oper_ID, Descrip & Cost fields:
PRESS_OPS->Oper_Id OPER_ID Yes 6
PRESS_OPS->Oper_Descript DESCRIP Yes 20
PRESS_OPS->Mr_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="MR"
PRESS_OPS->Mr_Rate_Y Cost Yes 10 Rate="Y".AND.Op_Type="MR"
PRESS_OPS->Wup_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="WUP"
PRESS_OPS->Wup_Rate_Y Cost Yes 10 Rate="Y".AND.Op_Type="WUP"
PRESS_OPS->Run_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="RUN"
PRESS_OPS->Run_Rate_Y Cost Yes 10 Rate="2".AND.Op_Type="RUN"
And here is a sample of what is in the Press_Ops->*_Rate_* fields:
Oper_Id/Oper_Descript/Mr_Rate_2/Mr_Rate_Y/Wup_Rate_2/Wup_Rate_Y/Run_Rate_2/Run_Rate_Y
PR-0010,40' 2-Color/1 person: Cover,15.55,12.50,15.55,12.50,15.55,12.50
The last field - Cost - is the problem as I do not get consistent results. If any of the first 4 conditions are met it works correctly. The last 2 are always wrong:
- When Rate=2 & Op_Type=RUN the value from the Run-Rate-Y field gets filled in
- When Rate=Y & Op_Type=RUN a value of 0 is filled in.
Other info: Version A5V4.5 Build 266. The problem occurs when I'm working on the app at my office, when I demo it to my customer using my laptop, and from an unlimited runtime of this app on the customer's systems.
Any ideas? - and thanks, I really appreciate this forum and the help that gets passed out here.
I have a table with the following fields:
Dkt_Num,Character,8 (user entered - no auto increment)
Rate,Character,1 (entered from simple list w/ choice of "2" or "Y")
Op_Type,Character,3 (entered from simple list w/ choice of MR, WUP or RUN)
*Oper_Id,Character,8 (filled in by lookup from related table of press operations)
*Descrip,Character,30(filled in by lookup from related table of press operations)
Press_Notes,Memo,10 (user entered)
Emp_Id,Character,6 (filled in by lookup from employees table)
Chits,Numeric,6,0 (user entered)
Total_Pcs,Numeric,8,0(user entered)
Pcs_Perhr,Numeric,8,0(calc'ed - (60/(CHITS*6))*TOTAL_PCS)
*Cost,Numeric,10,2 (conditional fill with value from related table of press ops)
(the 3 fields with *'s are filled in one auto popup lookup when the user gets to the Oper_ID field and makes a choice of a press operation)
Here are the 8 lines from the Source/Fill/Display/Width/Condition browse in the Field Rules dialog that determines what values get put into the Oper_ID, Descrip & Cost fields:
PRESS_OPS->Oper_Id OPER_ID Yes 6
PRESS_OPS->Oper_Descript DESCRIP Yes 20
PRESS_OPS->Mr_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="MR"
PRESS_OPS->Mr_Rate_Y Cost Yes 10 Rate="Y".AND.Op_Type="MR"
PRESS_OPS->Wup_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="WUP"
PRESS_OPS->Wup_Rate_Y Cost Yes 10 Rate="Y".AND.Op_Type="WUP"
PRESS_OPS->Run_Rate_2 Cost Yes 10 Rate="2".AND.Op_Type="RUN"
PRESS_OPS->Run_Rate_Y Cost Yes 10 Rate="2".AND.Op_Type="RUN"
And here is a sample of what is in the Press_Ops->*_Rate_* fields:
Oper_Id/Oper_Descript/Mr_Rate_2/Mr_Rate_Y/Wup_Rate_2/Wup_Rate_Y/Run_Rate_2/Run_Rate_Y
PR-0010,40' 2-Color/1 person: Cover,15.55,12.50,15.55,12.50,15.55,12.50
The last field - Cost - is the problem as I do not get consistent results. If any of the first 4 conditions are met it works correctly. The last 2 are always wrong:
- When Rate=2 & Op_Type=RUN the value from the Run-Rate-Y field gets filled in
- When Rate=Y & Op_Type=RUN a value of 0 is filled in.
Other info: Version A5V4.5 Build 266. The problem occurs when I'm working on the app at my office, when I demo it to my customer using my laptop, and from an unlimited runtime of this app on the customer's systems.
Any ideas? - and thanks, I really appreciate this forum and the help that gets passed out here.
Comment