Solved

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

Posted on 2014-01-15
2
409 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 48

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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 …

705 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