subtract two different fields to print as total
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?
0
-
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
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar