JoseMarques
Programmer
Hello
I'm working on an application that has a form that is inside a tab control which is in turn inside another form with a tab control.
The forms and tab control i use:
Form:trab
tab control:FRC
Form:FRCdisp
tab control:Registo
Form:Registo
subformredrust
I'm trying to copy data to a text box on the main form 'Registo' of a sub form fuction 'Predrust'.
The code i use:
...
10:Set rs = New ADODB.Recordset
11:str = "SELECT * From Plantacoes where id = '" & idcarr & "' "
12:rs.Open str, iconn, adOpenDynamic, adLockOptimistic
13:Forms![trab]![FRCdisp]![Registo].Form!conc = rs!Concelho
...
The error 438 its in the line 13.
I use the code of line 13 on the main form function and it works well.
Help please
I'm working on an application that has a form that is inside a tab control which is in turn inside another form with a tab control.
The forms and tab control i use:
Form:trab
tab control:FRC
Form:FRCdisp
tab control:Registo
Form:Registo
subformredrust
I'm trying to copy data to a text box on the main form 'Registo' of a sub form fuction 'Predrust'.
The code i use:
...
10:Set rs = New ADODB.Recordset
11:str = "SELECT * From Plantacoes where id = '" & idcarr & "' "
12:rs.Open str, iconn, adOpenDynamic, adLockOptimistic
13:Forms![trab]![FRCdisp]![Registo].Form!conc = rs!Concelho
...
The error 438 its in the line 13.
I use the code of line 13 on the main form function and it works well.
Help please