Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Set Value in a Subform using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CMA - 14 Mar 2007 21:42 GMT
I have a data entry form that contains a subform.

The main form has a save button for saving information.

The subform is used primarily for illustrative purposes, but contains a
Yes/No Check Box.

I would like an arrangement where once the save button of the main form is
pressed, the value in the Yes/No box is set to "Yes"

I am doing well at Learning Access and VBA, but I've yet to figure out how
to set the value of an item using code, much less the value of an item on a
subform.
Ofer Cohen - 14 Mar 2007 21:57 GMT
Try

Me.[Sub Form Control Name].Form![Check BoxName] = True

Signature

Good Luck
BS"D

> I have a data entry form that contains a subform.
>
[quoted text clipped - 9 lines]
> to set the value of an item using code, much less the value of an item on a
> subform.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.