Accessing the value of a field on a SUBFORM is tricky. Normally, getting a value off just one form is:
=Forms!FormNameF!FieldName
If you're dealing with a SUBFORM then it becomes:
=Forms!FormNameF!SubFormName.Form!FieldName
You can put this value in the Default Value property of your new form, OR it might be easier to go the other way. In the VBA code for the button that opens this new form, you might just want to set the value manually in the new form after opening it.
If the button is IN the subform of which you speak, then you wouldn't need to use any crazy notation. I cover this when we get into the 300-level series of Access courses and start learning VBA.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft Access 202.