Command Button to fill Subform Field

J

Jason Lopez

How do I get a command button on a mainform to input data into a subform.
Essentially, I just want a command button on the top of the form (where all
the data is being entered) to be available to the user to automatically add
a date to one field and and disable another field. Both the date and the
additional field are in a subform. But, I cannot seem to remember the code
to point the action to the subform instead of the main form. Help?

Jason Lopez
 
B

Beetle

The syntax is;

Me![NameOfSubformControl].Form![NameOfControl]

Keep in mind that the name of the subform control may or may not be the same
as the name of the subform itself.

HTH
 

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

Top