Can we put condition in source expression of textbox?

bhagyeshbhagyesh Member Posts: 29
Hello All,
I want to know can we put conditions(IF...then..else) in "source expression" property of a textbox in a subform.???

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    No.

    Instead you can use the returnvalue of a function and put your conditions there.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Just make life simple for everyone, and explain what you are trying to achieve. ](*,)
    David Singleton
  • snehalppatelsnehalppatel Member Posts: 34
    Mark is right...Create a function in table/form/request form, where you want to use the value of condition. Take the return value from function using Exit(Value), and in the Source Expression of the textbox, put the name of the Function with parenthesis e.g. FunctionName().
    Snehal Kumar Patel
    MCTS - Microsoft Dynamics NAV
Sign In or Register to comment.