Results 1 to 4 of 4
  1. #1
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60

    About ID Carrying to the Subform

    Hello,



    I attached an application. When you push the button on F1 form, F2 form is opening. But at the same time, I want to ID1 value can be transfer to the ID2. Normaly I can do this necessary with this code; (F2 load event)

    Code:
    Me.ID2.DefaultValue = Forms.F1.ID1
    But, I want to realize this application with macro or expression builder. I tried expression builder with this code but it is not working. Do you know why? Thanks.
    Attached Files Attached Files

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Have you tried using OpenArgs?

  3. #3
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60
    Hi kd2017,

    I don't know, OpenArgs feature. I've reviewed it, but I can't relate to my need.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    These tables are set up with a 1-to-1 relationship. Why not have just 1 table?

    WHERE condition is to open form filtered to an existing record. This does not pass value to form to create a new record.

    I think OpenArgs is available only with VBA. If you prefer macro I think have to use TempVars.

    Avoid code by using form/subform.
    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. Replies: 11
    Last Post: 09-11-2016, 06:00 PM
  2. Multiple Forms carrying forward data
    By adams.bria in forum Forms
    Replies: 5
    Last Post: 04-04-2012, 10:50 PM
  3. Help with carrying over values
    By htjr in forum Access
    Replies: 4
    Last Post: 02-18-2012, 01:44 PM
  4. Carrying data throughout Navigation Forms
    By drrob1983 in forum Forms
    Replies: 2
    Last Post: 09-06-2011, 12:57 AM
  5. Carrying over sort to report
    By eww in forum Programming
    Replies: 2
    Last Post: 03-04-2011, 03:39 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