J
Joe Williams
I am trying to code a subform so that double clicking on a subform record
brings up a new form for that particular record. I am putting the following
code in the double click event:
DoCmd.OpenForm "MattecDLDet", , , "[jobid] =
Forms!MattecDL!MattecDLSub.Form!jobno", acFormEdit
The new form to be opened is called MattecDLDet, the main form is called
MattecDL, the subform for that main form is MattecDLsub. The field I am
trying to reference is called jobno.
The problem I am having is that when I execute the code it gives me the
following message: Enter Paramter Value:
Forms!MattecDL!MattecDLSub.Form!jobno. So it seems as though it cannot
locate the field on the form. I am sure it has something to do with how I am
referencing the subform but I cannot figure it out. I have also just tried
to use "[jobid] = me!jobno" with similar problems.
Please help!
brings up a new form for that particular record. I am putting the following
code in the double click event:
DoCmd.OpenForm "MattecDLDet", , , "[jobid] =
Forms!MattecDL!MattecDLSub.Form!jobno", acFormEdit
The new form to be opened is called MattecDLDet, the main form is called
MattecDL, the subform for that main form is MattecDLsub. The field I am
trying to reference is called jobno.
The problem I am having is that when I execute the code it gives me the
following message: Enter Paramter Value:
Forms!MattecDL!MattecDLSub.Form!jobno. So it seems as though it cannot
locate the field on the form. I am sure it has something to do with how I am
referencing the subform but I cannot figure it out. I have also just tried
to use "[jobid] = me!jobno" with similar problems.
Please help!