assign a value to a property on a subfprm

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: preventing changes on a form/subform...
    ... I have this code running on an "on current" event. ... >> It is the form within the subform control that has the AllowEdits ... >> Referring to Controls on a Subform ... >> Dim bSkip As Boolean ...
    (microsoft.public.access.formscoding)
  • Re: Validation and subforms
    ... I was suggesting that you should try using a separate flag ... If that variable is the Boolean I described, and if it is set to ... True in the form's Current event, the Before Update code won't run until it ... an entry in Text1, then tries to go to the subform, the Before Update code ...
    (microsoft.public.access.formscoding)
  • Re: search subform on open
    ... Thanks for responding Jeanette, I actually got this to work by putting the ... You could set a filter for the subform ... clause for the boolean field. ... Can someone please give me some advise on how to loop through a record set ...
    (microsoft.public.access.formscoding)
  • Re: Validation and subforms
    ... True in the form's Current event, the Before Update code won't run until ... an entry in Text1, then tries to go to the subform, the Before Update code ... will run and generate an error message because Text 2 and Text 3 are still ... I have an awkward workaround that involves a boolean being set to True ...
    (microsoft.public.access.formscoding)
  • Re: setfocus from subfrom
    ... This will make the subform invisible whenever you click or tab into txtNOOP. ... If you want to avoid that, you can declare a Boolean in the Declarations ... Public blnYourBoolean as Boolean ...
    (microsoft.public.access.formscoding)