Solved

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

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

=[Forms]![frmCustomers]![subfrmPets].[Form]![cboSpecies.Column(1)]
0
Comment
Question by:SteveL13
2 Comments
 
LVL 39

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now