A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subform command buttons



 
 
Thread Tools Display Modes
  #1  
Old August 19th, 2004, 08:20 PM
Deb Smith
external usenet poster
 
Posts: n/a
Default Subform command buttons

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.



  #2  
Old August 20th, 2004, 03:49 AM
Andy
external usenet poster
 
Posts: n/a
Default

Deb;

This worked for me.

Modify it for Your SubForm

Private Sub CmdButton_OnClick()

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

Andy

"Deb Smith" wrote in message
...
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.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with DSum or Running Sum on a Subform drhalter Using Forms 4 August 15th, 2004 06:03 PM
dlookup miaplacidus Using Forms 9 August 5th, 2004 09:16 PM
Can't figger this'un out. Jerry Running & Setting Up Queries 7 July 7th, 2004 06:12 AM
Need help with cascading combos Tom Using Forms 19 July 1st, 2004 11:11 PM


All times are GMT +1. The time now is 01:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.