currForm.UPDATE can't code in function?

teckpohteckpoh Member Posts: 271
Dear all,

I tried to put currForm.UPDATE within a function called 'update()' in a form
but system return me an error 'the form does not recognize control 1000xxxx2'.
Or even i put currForm.ControlName.UPDATE i still get the error msg.
Any idea?

Comments

  • garakgarak Member Posts: 3,263
    check your controls if there is a textbox or a lable with this id or with this id in property ParentControl
    Do you make it right, it works too!
  • teckpohteckpoh Member Posts: 271
    garak wrote:
    check your controls if there is a textbox or a lable with this id or with this id in property ParentControl

    my parentControl value for the prompted id control100002 = 'undefined'.
    What should i do?
  • garakgarak Member Posts: 3,263
    create the control new or set the parentcontrol to the id that is the parent control.
    It'Äs easier to create the damaged control new with using the Field Menu.
    Check before if there are some source behind the control <- that u must also copy
    Do you make it right, it works too!
  • teckpohteckpoh Member Posts: 271
    Hi Garak/all,

    FYI, in my form comprising of subform and few controls.
    And i noted my subform which i assign name property = 'mySubform' and also 1 of the control that i assigned as 'g_total' created the problem.
    If i remove the name property compiler won't returning me error and the form can open properly.

    Just wonder how come when i used currForm.UPDATE, i've to remove the value under control->name property. :|
Sign In or Register to comment.