Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

930 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

14 Experts available now in Live!

Get 1:1 Help Now