+ Reply to Thread
Results 1 to 3 of 3

Pass Value From Subform To Text Box Control On Other Form VBA

  1. #1
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Pass Value From Subform To Text Box Control On Other Form VBA

    I have a main form that has a handful of combo boxes that the subform's query uses for results. I would like to have a double click event on the State from the subform that passes the State name that's being clicked from the qryDatasubform to txtValue on my frmOther form.


    Main Form --> frmMain
    Subform--> qryDatasubform
    Secondary Form --> frmOther
    Text Box --> txtValue


    State is not the primary key. there is an ID that's the primary key already.

    Thanks!

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,178

    Re: Pass Value From Subform To Text Box Control On Other Form VBA

    ON DBL-click
    forms!frmOther!txtValue = cboState

  3. #3
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Re: Pass Value From Subform To Text Box Control On Other Form VBA

    Works perfect!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] stack keeps growing when form calls subform
    By excel_joe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2015, 04:02 PM
  2. Replies: 1
    Last Post: 10-29-2014, 01:49 PM
  3. Form with Subform and combo boxes to filter
    By CRIMEDOG in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-18-2013, 05:46 PM
  4. hide subform when open them main form
    By pedjvak in forum Access Tables & Databases
    Replies: 4
    Last Post: 04-09-2013, 08:21 PM
  5. Main Form Multiple Combo Boxes Control Subform textboxes
    By jvbeats in forum Access Tables & Databases
    Replies: 0
    Last Post: 02-01-2013, 01:36 PM
  6. Pass Value/text from User Form to Macro
    By tompa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2011, 07:00 PM
  7. [SOLVED] form/subform with buttons
    By BAZ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 12:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1