-([BoneMar]+[Brain]+[Bone]+[Liver]+IIf([LymNodRgnl]=True Or [LymNodDist]=True,-1,0)+[Peritoneum]+[Pleura]+IIf([SknSftRgnl]=True Or [SknSftDist]=True,-1,0)+Not IsNull([OtherSpecify1])+Not IsNull([OtherSpecify2])+Not IsNull([OtherSpecify3]))
is some code i have in a macro which enters the sum of the number of times a) check boxes are affirmed and/or b) text is entered into three text box controls.
it doesn't work as it should.
before arriving at the code above, it looked like this:
-([BoneMar]+[Brain]+[Bone]+[Liver]+IIf([LymNodRgnl]=True Or [LymNodDist]=True,-1,0)+[Peritoneum]+[Pleura]+IIf([SknSftRgnl]=True Or [SknSftDist]=True,-1,0)+Not IsNull([OtherSpecify]))
which worked; but i needed to have three 'Other Specify' fields so i created two more and appended the extension 1, 2, and 3 to each of the controls' names and added their existence to the code.
at this point, if we ignore the checkboxes and focus on the fields beginning with 'OtherSpecify' and ending in either 1, 2 or 3, when the command button which actuates the macro that sets the value in a field (called 'Number of Metastatic Sites') is used, it seems to only detect the presence of nonblank values of 'OtherSpecify1'!!??
any thoughts?
is some code i have in a macro which enters the sum of the number of times a) check boxes are affirmed and/or b) text is entered into three text box controls.
it doesn't work as it should.
before arriving at the code above, it looked like this:
-([BoneMar]+[Brain]+[Bone]+[Liver]+IIf([LymNodRgnl]=True Or [LymNodDist]=True,-1,0)+[Peritoneum]+[Pleura]+IIf([SknSftRgnl]=True Or [SknSftDist]=True,-1,0)+Not IsNull([OtherSpecify]))
which worked; but i needed to have three 'Other Specify' fields so i created two more and appended the extension 1, 2, and 3 to each of the controls' names and added their existence to the code.
at this point, if we ignore the checkboxes and focus on the fields beginning with 'OtherSpecify' and ending in either 1, 2 or 3, when the command button which actuates the macro that sets the value in a field (called 'Number of Metastatic Sites') is used, it seems to only detect the presence of nonblank values of 'OtherSpecify1'!!??
any thoughts?