Greetings,
Another question
I am trying to setup
two buttons on my form. The purpose of them
is to change the view between single form
and datasheet for a subform of the main
form.
I had a helluva time trying to just specify
the form to VBA (tried...
forms.index("frm_subform"
.defaultview
forms.index("frm_Main!frm_subform"
.defaultview
forms("frm_subform"
.defaultview
forms("frm_Main!frm_subform"
.defaultview
...none of them worked (said VB couldnt find
the form). I originally couldnt access the
defaultview property before (wasnt listed, and
wasnt being recognized as a property).
I finally tried this statement...
Form_frm_Checkout_SUB_Srch_Cust.DefaultView = 2 'datasheet
...which results in a message that this needs
to be changed while in design view (which defeats
the purpose). I planned on repainting/updating
the sub form after changing its default view to
reflect the new view.
If I try...
frm_Checkout_SUB_Srch_Cust.DefaultView
...it says "Method or datamember not found", any
ideas why I have to prefix the name of my form
with the word "Form"?
Regards,
Travis
Another question
two buttons on my form. The purpose of them
is to change the view between single form
and datasheet for a subform of the main
form.
I had a helluva time trying to just specify
the form to VBA (tried...
forms.index("frm_subform"
forms.index("frm_Main!frm_subform"
forms("frm_subform"
forms("frm_Main!frm_subform"
...none of them worked (said VB couldnt find
the form). I originally couldnt access the
defaultview property before (wasnt listed, and
wasnt being recognized as a property).
I finally tried this statement...
Form_frm_Checkout_SUB_Srch_Cust.DefaultView = 2 'datasheet
...which results in a message that this needs
to be changed while in design view (which defeats
the purpose). I planned on repainting/updating
the sub form after changing its default view to
reflect the new view.
If I try...
frm_Checkout_SUB_Srch_Cust.DefaultView
...it says "Method or datamember not found", any
ideas why I have to prefix the name of my form
with the word "Form"?
Regards,
Travis