Zum Hauptinhalt gehen

Suche

Suche

Is There A Way To Turn Off A Scripted Field If There Is No Value Entered Into The Field Used For The Calculation?

Kommentare

4 Kommentare

  • Avatar
    Michael Toupin (mtoupin

    What's the script error that you're seeing?  

     

    Make sure that you're doing some sort of null validation (so something like 'if value <> "" then').

    0
  • Avatar
    Legacy Poster

    Do I put the 'if value <> "" then' in my calculated value field or as a script in the data entry form?

     

    Currently I have no if then statement in my script because I keep getting a syntax error when I try to enter it.

    0
  • Avatar
    Legacy Poster

    Currently with no if then statement in my script for my calculated weight I get  " BarTender: Error Message # 3904 "  It says it is a spript type mismatch.

    0
  • Avatar
    Legacy Poster

    1. If "EnternetKG1" >0 Then


      Formatnumber(Format.Objects("EnternetKG1").Value * 2.20462,1)


      Else


      Print ''


      End If

    This is my If then statement, I want my script to do the calculation if a number is present otherwise leave the field blank,  I keep getting a syntax error that reads

    <Line 1: Value = If "EnternetKG1" >0 Then: Syntax error>

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.