Control Button help needed

  • Thread starter Thread starter Obeide115654
  • Start date Start date
O

Obeide115654

In the microsoft template database "Classroom"/ Classes form there is a
command button that will open another form (Students) on a specific record in
the subform. I can't figure out how to do this. Can anyone out there help
me?
 
The code behind the button is using the OpenForm method and is passing the
ID of the record to open to as part of the "WHERE" argument. Look up
OpenForm method (or action to see the macro version) and review the
arguments.
 
Hi Pat,
Thank you for your reply, I can get this to work where there is a direct
relationship from a form, but not from a subform. How do I tell the OpenForm
to see the ID of the record in the subform? I'm sure it will be something
obvious i'm missing!
 
It is a matter of creating the proper reference:
Forms!yourmainform!yoursubform.Form!yourcontrolname
 
Back
Top