Subform command buttons

D

Deb Smith

Is it possible to use command buttons on a form to perform actions affecting
records on a subform. For example is it possible to have undo, delete, add
record command buttons on the main form that can be programatically set to
affect subform records.
 
A

Andy

Deb;

This worked for me.

Modify it for Your SubForm

Private Sub CmdButton_OnClick()

Me!sfrmName.Form!txtControlName = Me![txtWhatIsInControlOnMainForm]
End Sub

Andy
 

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