Solved

Populate 2nd form with 1st form, subform combobox value, column (1)

Posted on 2014-01-15
2
408 Views
Last Modified: 2014-01-15
What is wrong with this code?

=[Forms]![frmCustomers]![subfrmPets].[Form]![cboSpecies.Column(1)]
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 39783052
Try
=[Forms]![frmCustomers]![subfrmPets].[Form]!cboSpecies.Column(1)
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39783063
If this is a control source , try:

=[Forms]![frmCustomers]![subfrmPets].[Form]![cboSpecies].Column(1)

But that will not work in a query.  In a query, you would need to create a function that would return that value, something like:

PublicFunction fnSpecies(ColNum) as variant

    fnSpecies = [Forms]![frmCustomers]![subfrmPets].[Form]![cboSpecies].Column(ColNum)

End Function
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question