subform

J

John

Have a combobox (ChargeAccountID) on a subform (zPurchaseOrderItems)
that I need to reference. I have the following but it doesn't seem to
be correct and I am not finding the issue.

Form!zPurchaseOrderItems.Form!ChargeAccountID.column(0)

Can someone take a look and see what is wrong?
Thanks... John
 
J

John W. Vinson

Have a combobox (ChargeAccountID) on a subform (zPurchaseOrderItems)
that I need to reference. I have the following but it doesn't seem to
be correct and I am not finding the issue.

Form!zPurchaseOrderItems.Form!ChargeAccountID.column(0)

Can someone take a look and see what is wrong?
Thanks... John

The correct syntax is

Forms!mainformname!subformcontrolname.Form!ChargeAccountID

You must start with the name of the main form on which the subform appears,
and then use the name of the Subform Control (which may or may not be the same
as the name of the form which is within that control).
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 
J

John

The correct syntax is

Forms!mainformname!subformcontrolname.Form!ChargeAccountID

You must start with the name of the main form on which the subform appears,
and then use the name of the Subform Control (which may or may not be thesame
as the name of the form which is within that control).
--

             John W. Vinson [MVP]
 Microsoft's replacements for these newsgroups:
 http://social.msdn.microsoft.com/Forums/en-US/accessdev/
 http://social.answers.microsoft.com/Forums/en-US/addbuz/
 and see alsohttp://www.utteraccess.com


I was missing the main form name. DUH on my part.
Thanks.
 

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