Results 1 to 4 of 4
  1. #1
    spidge32 is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2021
    Posts
    58

    Update a unbound field on 1 form with data from another unbound field on another form


    I have a form which has a unbound field "JobSheetCombo". (This field is used to search for a Part Number. A button opens a form to print the data for the particular Part that is the value of the JobSheetCombo.
    What I would like to do is load the value of the "JobSheetCombo" field to the unbound field "cboPN" on the opened form when the form is opened.
    Currently I have to retype the Value of "JobSheetCombo" into the field "cboPN"

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Try it with Openargs.

    from the calling form:

    DoCmd.OpenForm "MyTargetForm", , , , , , Me.JobSheetCombo

    then in the called form's Form_Open event:

    Me.cboPn = OpenArgs

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    If you're passing a value to a control on a form (if it's unbound I think it's a bit of a misnomer to call it a field) and using that combo to filter the form, why don't you just open the form filtered to that record or records?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    spidge32 is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2021
    Posts
    58
    Davegri,

    Thank you for your help, code works a treat.

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

Similar Threads

  1. Replies: 4
    Last Post: 08-04-2020, 12:13 AM
  2. Add Unbound field to a form
    By Dave14867 in forum Forms
    Replies: 7
    Last Post: 11-03-2019, 01:27 PM
  3. Replies: 8
    Last Post: 05-11-2018, 11:39 AM
  4. Replies: 3
    Last Post: 11-29-2016, 10:03 AM
  5. Replies: 5
    Last Post: 01-30-2015, 02:45 PM

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