I'm having a rather peculiar problem:
I'm using a VBScript to switch between German and French text on my label. I used the exact same Code on a different Label, I just renamed some Data Source variables. It works perfectly fine there.
For that I'm using multiple variables, this is what the code approximately looks like:
Code: Select all
Dim LANG Dim DescrDE Dim DescrFR Dim QtyDE Dim QtyFR Dim ColorDE Dim ColorFR Dim ArtNoDE Dim ArtNoFR Dim ColorWertDE Dim ColorWertFR LANG = [Language] DescrDE = [SQLVALUES.DESCRIPTION_DE] DescrFR = [SQLVALUES.DESCRIPTION_FR] QtyDE = "Menge" QtyFR = "Quantité" ColorDE = "Farbe" ColorFR = "Couleur" ArtNoDE = "Artikelnummer" ArtNoFR = "Numéro d'article" ColorWertDE = [SQLVALUES.COLOR_DE] ColorWertFR = [SQLVALUES.COLOR_FR] If LANG = "DE" Then [Beschreibung] = DescrDE [AnzahlLabel] = QtyDE [FarbeLabel] = ColorDE [ArtikelnummerLabel] = ArtNoDE [Farbe] = ColorWertDE Else [Beschreibung] = DescrFR [AnzahlLabel] = QtyFR [FarbeLabel] = ColorFR [ArtikelnummerLabel] = ArtNoFR [Farbe] = ColorWertFR End If
However, as soon as I switch to printing, the values are no longer shown. If I tick the box "Value Required", I get an error that it's empty.
What I have tried so far:
- Check if they're Phantoms
- Check if their visibility is depending on another variable
- If another variable interferes
- If my SQL is interfering
- If my Syntax is correct
I hope somebody here can help me!