>>>>>>>I am trying to evaluate the expression "form1.office1.value" but the error "Object form1 is not found" results. the form I created is subclassed but still is called 'Form1'.
>>>>>>
>>>>>>Try Thisform.office1.value
>>>>>>or (if it's not active form) _SCREEN.Forms(nIndex).office1.value
>>>>>
>>>>>I am referencing it from code in another form.
>>>>>Wondering why I cannot refer to it as 'form1' or whatever I choose to call it?
>>>>>I am not sure what _SCREEN.Forms(nIndex is as I've not used it
>>>>
>>>>You can still use Form1.office1.value, if you initiated your form using:
>>>>DO Form Form1 Name Form1 LINKED
>>>>If you will be unsuccessful here, just make a look at 'Forms Property' article from Help to understand another way.
>>>
>>>Well I issued a "DO Form myform Name Form1 LINKED" but still tells me "form1 is not an object". When I created the form I said create form myform and the title of the form defaulted to 'form1' like they all do.
>>
>>Instead of using form1.office1.value, try replacing form1 with the FILE NAME of your form. For instance, if it is myform.scx, then try myform.office1.value
>
>that did not work, seems I cannot reference the office1.value from outside the form!
Hi Tim,
If you've left in the "Form1" as the name and you have another form open that has the "Form1" name, then you could be referencing the wrong form. Try giving each form a unique name or at least a unique variable in the DO FORM command.
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only