Run Time Error: 2465

J

JNariss

I am trying to have my form "frmMoveToProd1" to use the SendObject to
populate an email I send to users with the fields that are within the
form and a subform.

I need to include the field: Moved_By on the subform:
Move_To_Production_subform. I currently have to following coded line
which is giving me error: 2465

strMoved_By =
Forms!frmMoveToProd1!Moved_By.Move_To_Production_subform.RecordsetClone

The error message tells me that the database can't find the field
"Moved_By" referred to in my expression.

I thought someone's expertise could get me through this.

Thanks,
Justine
 
D

Douglas J Steele

Take a look at http://www.mvps.org/access/forms/frm0031.htm at "The Access
Web" for how to refer to controls on subforms.

Be aware that when it says "Subform1" or "Subform2" there, it's talking
about the name of the subform control on the form, which may or may not be
the same as the name of the form being used as a subform.

When you create a subform by dragging one form onto another, the subform
control that's created is automatically named to the same as the form that
you dragged. However, if you add a subform control from the toolbox, it'll
be named something like "Child0". As well, if you drag the same form onto a
main form more than once, the subform control will be named something
different than the form that you dragged.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Erro 2465 11
Rin Time error 2465 5
Run-time error 2465 1
Error 2465; Can't Find Field 5
Error Message Run Time 2465 2
How to fix Error 2465 8
Audit Trail In Subform 1
Error 2465 getting recordset for subform 5

Top