Solved

Form/Subform reference not working

Posted on 2011-09-14
1
298 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

Industry Leaders: 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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
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 …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 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