Passing OpenArgs to a subform

G

Guest

Hi,

I would like to pass openargs to a subform using Child1.SourceObject = <A
Form>. Is there any syntax or way to include Openargs with the sourceobject
property of a subform?
 
M

Marshall Barton

Earnest said:
I would like to pass openargs to a subform using Child1.SourceObject = <A
Form>. Is there any syntax or way to include Openargs with the sourceobject
property of a subform?


No.

If you want the subform to use the OpenArgs passed to the
main form, it can use the reference:
Parent.Openargs
 
G

Guest

Thanks,
That's not the problem - I'm rewriting an application where forms opened
forms. In the rewrite I'm having a form "host" the forms as subforms. In
trying to convert the original code, there are methods using Openargs that
would have been great to reuse. I don't see a way when using sourceobject =
to create a subform. The Doc says open args can only be created using a
DoCmd.Openform structure. Oh well.

Thanks very much though for your consideration. It's much appreciated. I'm
moving on to just store the old OpenArgs arguments in a Parent textbox. No
biggie.

Best,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top