Results 1 to 2 of 2
  1. #1
    mikehorse is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    9

    Autofill text box on form B with contents of datasheet field on form A

    Hi



    I always struggle to articulate issues like this, so here goes....

    I'm part way through building a 2010 Access Database to track the status of various tests.

    One of the area's I've come unstuck is;

    I have a form called "Run TestCase" basic function is to select a set of tests, and then the actual test to be run, I've have 3 different methods I'm testing; combo box, listbox & datasheet based subform, hopefully demonstrated on the sandbox form below.

    Click image for larger version. 

Name:	Run TestCase form.jpg 
Views:	10 
Size:	94.4 KB 
ID:	19334


    When I click the button, double click the listbox item or double click the "TEST_SCENARIO" field. Another form will open and the "Test Run Name" field populated with a concatenation of Test Set & Test Scenario.

    Click image for larger version. 

Name:	Run Detail Form.jpg 
Views:	10 
Size:	121.0 KB 
ID:	19331

    I can get this to work with the combo box & Listbox. However, I get #Name ? with the subform method using the entry in the default value in the screenshot above. I prefer the subform route as I can use conditional formatting, not possible with listbox.

    Any idea how I can get the "Test Run Name" Field to populate the way I want

    Thanks in advance for any help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Need to know more about data structure and form/subform design. If want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Autofill of second field in a Form
    By jcbhydro in forum Forms
    Replies: 10
    Last Post: 10-24-2013, 07:07 AM
  2. Autofill field in form
    By TheHarleygirl2005 in forum Access
    Replies: 9
    Last Post: 01-07-2013, 11:31 AM
  3. Replies: 1
    Last Post: 02-20-2012, 01:02 PM
  4. Replies: 2
    Last Post: 07-14-2011, 09:23 AM
  5. Replies: 3
    Last Post: 05-23-2011, 07:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums