Results 1 to 3 of 3
  1. #1
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30

    SalesID on parent form not populating in child form

    Hi



    I have a database setup almost identical to this in you tube "Access Order Forms with subforms & macros NCEA L3". what i am attempting to do is, instead of having to select the order ID on the popup subform, i want access to populate it automatically.
    i have used [Forms]![OrderForm]![OrderID] in the OrderDetailQuery but it does not work. I have used as the control source on the subform orderID box, it populates the number but does not populate the actual table.

    can anyone help?

    Thanks
    Adam

  2. #2
    Adam1970 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2023
    Posts
    30
    have sorted it thanks.

    for info i added a combobox with a default value of [Forms]![OrderForm]![OrderID] and stored the value in the orderid field on the subform popup

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    This isn't a form/subform arrangement. It is opening an independent form. Don't use a combobox unless you want to allow user to change OrderID, instead use a textbox and set it as Locked Yes and TabStop no.

    If you did use form/subform arrangement, then could set the Master/Child Link properties to automatically populate foreign key.
    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: 17
    Last Post: 12-28-2021, 01:42 PM
  2. Replies: 6
    Last Post: 01-14-2021, 04:54 PM
  3. Replies: 20
    Last Post: 05-13-2020, 02:49 PM
  4. Replies: 3
    Last Post: 07-03-2013, 01:20 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