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 / New Users / January 2008

Tip: Looking for answers? Try searching our database.

assign a value to a property on a subfprm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mcnews - 31 Jan 2008 16:03 GMT
i have a property called BIsSubForm declared as boolean on a form.
this form will be used as a stand alone form and as a subform.
when it is a subform i want to assign the mIsSubForm public variable
the True value.
how do i reference it from the on load method of the owner form.

tia,
mcnewsxop
Yanick - 31 Jan 2008 16:46 GMT
if there is VBA code in your subform you can reference to it from the main
form like this :

Form_YourFormName.mIsSubForm.value = True

If there is no VBA code in the subform you can add something like this in
the OnLoad event :

dim x as byte

x = 1

Should do the trick!
Signature

Yanick

> i have a property called BIsSubForm declared as boolean on a form.
> this form will be used as a stand alone form and as a subform.
[quoted text clipped - 4 lines]
> tia,
> mcnewsxop
mcnews - 31 Jan 2008 17:01 GMT
> i have a property called BIsSubForm declared as boolean on a form.
> this form will be used as a stand alone form and as a subform.
[quoted text clipped - 4 lines]
> tia,
> mcnewsxop

i did it this way:

If Me.Parent.Name = "frmAddSpecimens" Then mIsSubForm = True
 
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.