Print Or Hide Object Using Text File Follow
Hello, of course I'm a newbie to Bartender VB Scripting. I have a pipe delimited text file that we use for the data source. I have a field called "[size="1"]receipts_database.Inspect"[/size] in the text file that gives a "Yes" or "No" value. This lets us know if an item has to be inspected or not. If the field prints a value of Yes I want an "I" to print on the label which signifies the product has to be inspected. If the value is "No" in the file, nothing should print there. In the text obect under the "General" tab where it say object name. I named the object "Inspect"
I'm a little confused if I should select the Source as; Database Field, Screen Data or Label Object String. For now I have selected Screen Data and entered an "I".
The script I wrote below does not work. I get an error message "Object required: 'Inspect'
If (Field ("receipts_database.Inspect") = "Yes") Then
Inspect.PrintVisibility = True
Inspect.PrintVisibility = False
I attached the .btw file and a screen shot. If anyone can help me it will be much appreciated.
Please sign in to leave a comment.