subtract two different fields to print as total Follow

0
Avatar
k b

I'm trying to write a VB Script to populate from 2 different fields with:

result = BarCode4 - BarCode2

 

Is there another way to get this to work?

1 comments

0
Avatar
Peter Thane
Comment actions Permalink

I believe you will need to reference the fields correctly either by making them Named Data Sources or, if the numbers come from a database select the field names in the VB Script Editor window. 

For example I have named two fields BarCode4 and BarCode2 as per your information and my VB command would be

Value = Format.NamedSubStrings("BarCode4").Value - Format.NamedSubStrings("BarCode2").Value

Please sign in to leave a comment.