spikeytenpin
IS-IT--Management
I have a tabular form, that for arguements sake returns 2 fields. (Field1 and Field2) Each record has a control button that I want to set to enable, only if the the value of Field1 = the value of Field2.
I can do this very easily by setting the control value to enable=false by default and putting a simple 'if' on one of the field events in a record, but when I put the 'if' code on Form open, it looks at the first record in the form and sets all of the controls for all records based on that records evaluation.
I really want to evaluate all of the records independantly when the form opens, and set appropriate values to the record control.
Users of this form may not necessarily have access to any of the field1 or field2 data, so the only action they are likely to carry out is click the control, so the 'if' evaluation needs to be somewhere on the form and not at record level.
Any help gratefully appreciated.
Thanks
I can do this very easily by setting the control value to enable=false by default and putting a simple 'if' on one of the field events in a record, but when I put the 'if' code on Form open, it looks at the first record in the form and sets all of the controls for all records based on that records evaluation.
I really want to evaluate all of the records independantly when the form opens, and set appropriate values to the record control.
Users of this form may not necessarily have access to any of the field1 or field2 data, so the only action they are likely to carry out is click the control, so the 'if' evaluation needs to be somewhere on the form and not at record level.
Any help gratefully appreciated.
Thanks