subtract two different fields to print as total S’abonner

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 commentaires

Pete Thane
Actions pour les commentaires Permalien

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

Vous devez vous connecter pour laisser un commentaire.