Solved

Form/Subform reference not working

Posted on 2011-09-14
1
294 Views
Last Modified: 2012-05-12
I have a Form/Subform combo with a dropdown box on my form that references a column of a table.  In the subform, when the user selects the value on the form, I want that same value to show in a textbox (or a dropdown) in my subform.  

I tried making the rowsource [Forms]![Form2]![Combo1] but this seems to do nothing.  Please help.

Thanks
0
Comment
Question by:--TripWire--
1 Comment
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 36537169

Unless you refresh or requery that control or the subform in the AfterUpdate event, nothing will happen in the subform.

The other method would be to use the AfterUpdate event of the main form combo to push the data to the subform control, like:

Private Sub combo1_AfterUpdate

    me!subformcontrolname!form.textboxname = me.combo1

End Sub
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
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…

758 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

20 Experts available now in Live!

Get 1:1 Help Now