Update Control on One subform with value from another Subform

Posted on 2009-12-16
Last Modified: 2013-11-28
I have 2 subforms on a form, frmInvoiceDetail1.

They are:
frmVendor_ClaimDropDown and frmRunningAmtsInv.
When the [VendorName] on the first form is populated, I would like to populate the [Vendor] control on the second.

I am not sure where to set this event, so that it consistently works. Right now, I have code set on the After Update event on the [VendorName] control.
This is the line of code I am using:

Forms![frmInvoiceDetail1]![frmRunningAmtsInv].Form![Vendor] = Me.VendorName
Question by:4charity
    LVL 77

    Expert Comment

    Are you saying your code is not working?
    Are you getting any error message?
    Are you sure the code is running- add in a msgbox to check.
    LVL 3

    Accepted Solution

    Would the On Change event do it?
    Is a user clicking to change teh VendorName control? What type of control is it?

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    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…
    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…
    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.

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now