G
Guest
Hi all..I have this code to fill in a subform a field named[Qty] , this is
equal to: [List4] * [PLY]
-------------------------------------------------------
[ModANDSize SubForm]![Qty] = [List4] * [PLY]
DoCmd.GoToControl "ModANDSize SubForm"
DoCmd.GoToRecord , , acNewRec
List11.SetFocus
-------------------------------------------------------
but now the [Qty] has been divided in 4 fields like:
[10_Ply] , [5_Ply] ,[2_Ply] ,[1_Ply] ,
the objetive is that when I press the Button to move the values the qty from
[List4] need to be separated in these field like for example, if the [List4]
say 26 so the qty will be separated in:
[10_Ply] [5_Ply] [2_Ply] [1_Ply]
2 1 0 1 because 2*10+1*5+0*2+1*1= 26
another example:
if the [List4] say: 7 so the qty will be separated in:
[10_Ply] [5_Ply] [2_Ply] [1_Ply]
0 1 1 0 because 0*10+1*5+1*2+0*1= 7
could you help me on this..I will appreciate so much.
Thanks
equal to: [List4] * [PLY]
-------------------------------------------------------
[ModANDSize SubForm]![Qty] = [List4] * [PLY]
DoCmd.GoToControl "ModANDSize SubForm"
DoCmd.GoToRecord , , acNewRec
List11.SetFocus
-------------------------------------------------------
but now the [Qty] has been divided in 4 fields like:
[10_Ply] , [5_Ply] ,[2_Ply] ,[1_Ply] ,
the objetive is that when I press the Button to move the values the qty from
[List4] need to be separated in these field like for example, if the [List4]
say 26 so the qty will be separated in:
[10_Ply] [5_Ply] [2_Ply] [1_Ply]
2 1 0 1 because 2*10+1*5+0*2+1*1= 26
another example:
if the [List4] say: 7 so the qty will be separated in:
[10_Ply] [5_Ply] [2_Ply] [1_Ply]
0 1 1 0 because 0*10+1*5+1*2+0*1= 7
could you help me on this..I will appreciate so much.
Thanks