This topic is locked

Counting Fields

9/8/2006 2:02:07 AM
ASPRunnerPro General questions
B
bburden author

This is the function that I am using in my aspfunction. Its almost working at least it is putting text in the right place in MS Access. The only problem I am having now is that instead of it summing the 2 fields in the total field it just adding both of the numbers. Can I get a little help please.
Case EDIT_FORMAT_TEXT_FIELD

stronchange = ""

if sFieldName = "material_sum" or sFieldName = "labor_sum" then

stronchange = "onchange = ""java script:editform.total.value = editform.materialsum.value" &

" + editform.laborsum.value;"""

end if

BuildEditControl = "<input type=text name=""" & sFieldName & """" &


GetEditParams(sFieldName) & " value=""" & sDefault & """" & stronchange & ">"
Thanks

B
bburden author 9/8/2006

This is the function that I am using in my aspfunction. Its almost working at least it is putting text in the right place in MS Access. The only problem I am having now is that instead of it summing the 2 fields in the total field it just adding both of the numbers. Can I get a little help please.

Case EDIT_FORMAT_TEXT_FIELD

stronchange = ""

if sFieldName = "material_sum" or sFieldName = "labor_sum" then

stronchange = "onchange = ""java script:editform.total.value = editform.materialsum.value" &

" + editform.laborsum.value;"""

end if

BuildEditControl = "<input type=text name=""" & sFieldName & """" &


GetEditParams(sFieldName) & " value=""" & sDefault & """" & stronchange & ">"
Thanks


<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=10968&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> I have figure this out on my own, it makes it better when I can figure out the problem, that way I will never forget it.
Thanks