"geebee" <(E-Mail Removed)(noSPAMs)> wrote in message
news:231F71B3-5AD7-4497-AA86-(E-Mail Removed)...
> hi,
>
> i would like for the subform to be dynamically changed to where records
> can
> be added when the main form is loaded... i now have:
>
> Forms!frm_charity.Control!sbfrm_template.AllowAdditions = True
>
>
> but i am getting an application-defined or object-defined error message.
>
> not sure what to do.
Your syntax is wrong in two ways. First, it should be "Controls", not
"Control"; second, you need a ".Form" qualifier after "sbfrm_template".
You can leave out the ".Controls" qualifier entirely, though. Try this:
Forms!frm_charity!sbfrm_template.Form.AllowAdditions = True
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)