Textbox Option Default

toootooo Member Posts: 138
I have the the option string on a text box set as 1,2,3 have can i default it to 2? What property do i need to set?

Comments

  • Lec11Lec11 Member Posts: 91
    You initialize the variable with the desired option value ... if you use a form, you do this in, let's say, On Open Form!

    If it's a field in a table, you can do it in OnInsert, or use the InitValue property!

    Regards!
  • krikikriki Member, Moderator Posts: 9,110
    If it is a field of a table, I would create a function in the table "InitRecord" and I would call this function from the "Form - OnNewRecord"-trigger on the form that uses the record.
    With the function it is a lot more structured and in case you need to add a field or change the value, you do it in 1 point and all forms using it are ok.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • garakgarak Member Posts: 3,263
    or the InitValue property on the fieldproperty in the table ;-)
    Do you make it right, it works too!
Sign In or Register to comment.