Solved

Form/Subform reference not working

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

770 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